From patchwork Thu Oct 15 18:40:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Insu Yun X-Patchwork-Id: 7408881 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B551C9F302 for ; Thu, 15 Oct 2015 18:39:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDA8E20779 for ; Thu, 15 Oct 2015 18:39:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 22AE220770 for ; Thu, 15 Oct 2015 18:39:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380AbbJOSjM (ORCPT ); Thu, 15 Oct 2015 14:39:12 -0400 Received: from mail-yk0-f196.google.com ([209.85.160.196]:35546 "EHLO mail-yk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbbJOSjM (ORCPT ); Thu, 15 Oct 2015 14:39:12 -0400 Received: by ykcg132 with SMTP id g132so7425245ykc.2; Thu, 15 Oct 2015 11:39:11 -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=HYhO5f4njiBgARQ7Ey7GL1i2L/XlD7psSzJAJWshqsc=; b=FOLZj4QH/nyOPRLdCJCVFZvmFPyKVKZfdrNnoUMjQcrYSn6wRa3NPvkzpPvS6qASsb 1kSLq9CTIHCWVvnSPxBl/I/pJmUVARESy04vfzqQqxk2dh1TPmuzOd287mpO30sJqJqP SYzef0/Zdie7C3qd22LID6y7fxDbanGg+uZkp8o7TAu1lhBn8dWFyqcPQZBwNRB5HXiB arvaVpC84vmmCE5h/smT2V5oUVFOScEvoPNcfQ3s2KCbjpr5ShdDR5M3OIDMZ2sYTlDJ CwoboRpLUPmcLINaxBvWptG8jjsjtlJYCrDKfTTkLH7Zs7PcFIu4GLsC/tOf0SDkT2Gg wcUw== X-Received: by 10.129.78.1 with SMTP id c1mr7637818ywb.175.1444934351397; Thu, 15 Oct 2015 11:39:11 -0700 (PDT) Received: from cutthroat.gtisc.gatech.edu (cutthroat.gtisc.gatech.edu. [128.61.240.77]) by smtp.gmail.com with ESMTPSA id t83sm11334669ywa.46.2015.10.15.11.39.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Oct 2015 11:39:10 -0700 (PDT) From: Insu Yun To: dmitry.torokhov@gmail.com, david.vrabel@citrix.com, wei.liu2@citrix.com, julien.grall@citrix.com, stefano.stabellini@eu.citrix.com, huaixin.chx@alibaba-inc.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: taesoo@gatech.edu, yeongjin.jang@gatech.edu, insu@gatech.edu, Insu Yun Subject: [PATCH] xen: check return value of xenbus_printf Date: Thu, 15 Oct 2015 18:40:12 +0000 Message-Id: <1444934412-18248-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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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..9d465d7 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();