From patchwork Mon Oct 19 16:02:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Insu Yun X-Patchwork-Id: 7438241 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 84FE8BEEA4 for ; Mon, 19 Oct 2015 16:01:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B9A3D205EC for ; Mon, 19 Oct 2015 16:01:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD55A205EF for ; Mon, 19 Oct 2015 16:01:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750814AbbJSQBf (ORCPT ); Mon, 19 Oct 2015 12:01:35 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:36287 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbbJSQBe (ORCPT ); Mon, 19 Oct 2015 12:01:34 -0400 Received: by ykdz2 with SMTP id z2so62002115ykd.3; Mon, 19 Oct 2015 09:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=rUsDK/dLBybfAewSPpqvH91RfW0QA/TeUMZYFPHLAZo=; b=iSoPhaN00NDTRUW/sPKT+kMyDgsQgY+Mmex4i2eu8s7YvcYcYJNLegoJy28aXAj9Px 9PukXwBXn3FvKkejw5ojQj4HW9wHRrsUNkhaRlkNqu332qRaJc9c17W1Sx7Ivp5/JGgI 93Rxbx1CK9xIvANbUmJjuKrzIcROIG27kVJUDga4jGncEhHvY1YHlWCYHGCKAljgZOD8 C/ktnwKXR0rNEPQQOHz1Dct2J3eFvuPxCAFHSkX6pGxj8e6mSBrK0EvVMxTQqmyy5kcH uaKyizfvJOhizzMUmXGACyUi1GeCzYbTtEsx8zsAI0c5CinGp28XHXF7hi2jmsx/L+9M ii3A== X-Received: by 10.13.219.149 with SMTP id d143mr20340652ywe.77.1445270493253; Mon, 19 Oct 2015 09:01:33 -0700 (PDT) Received: from cutthroat.gtisc.gatech.edu (cutthroat.gtisc.gatech.edu. [128.61.240.77]) by smtp.gmail.com with ESMTPSA id v4sm26661933ywf.5.2015.10.19.09.01.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Oct 2015 09:01:32 -0700 (PDT) From: Insu Yun To: dmitry.torokhov@gmail.com, wei.liu2@citrix.com, david.vrabel@citrix.com, stefano.stabellini@eu.citrix.com, julien.grall@citrix.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: taesoo@gatech.edu, yeongjin.jang@gatech.edu, insu@gatech.edu, changwoo@gatech.edu, Insu Yun Subject: [PATCH] xen: check return value of xenbus_printf Date: Mon, 19 Oct 2015 16:02:51 +0000 Message-Id: <1445270571-23890-1-git-send-email-wuninsu@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Insu Yun --- drivers/input/misc/xen-kbdfront.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/xen-kbdfront.c b/drivers/input/misc/xen-kbdfront.c index 23d0549..0a9ad2cf 100644 --- a/drivers/input/misc/xen-kbdfront.c +++ b/drivers/input/misc/xen-kbdfront.c @@ -129,8 +129,14 @@ static int xenkbd_probe(struct xenbus_device *dev, if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-abs-pointer", "%d", &abs) < 0) abs = 0; - if (abs) - xenbus_printf(XBT_NIL, dev->nodename, "request-abs-pointer", "1"); + if (abs) { + ret = xenbus_printf(XBT_NIL, dev->nodename, + "request-abs-pointer", "1"); + if (ret) { + pr_warning("xenkbd: can't request abs-pointer"); + abs = 0; + } + } /* keyboard */ kbd = input_allocate_device();