Received: by 10.223.164.202 with SMTP id h10csp1217369wrb; Fri, 17 Nov 2017 16:27:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMa0yeO7LSaw7kqndjZ6eP/1kzb8TvcY4u+i77ldXX3bVNUlSimklv5rIOVfogcEWwE/mL4r X-Received: by 10.101.73.203 with SMTP id t11mr6689750pgs.446.1510964823024; Fri, 17 Nov 2017 16:27:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510964822; cv=none; d=google.com; s=arc-20160816; b=uwedWhwQS0voHnQ5Nd4XQO7tbeQssDnyM9Sx+jUPm+sJ6iAPqilemJsn8ruKSQoNv7 RQg5e91jZQhX4aBQ9LCNa40JVZqFHtcpRD4vXShHpyfmbsDc3PL1/KqVm5UHmPpx4M09 jUgNdv3RANEsCLlu/UR1YVj/usx7wVqbuquKGWEpGPt60uRqH8MBalnUHK80HNKC4qDm iEVOXedpE8tKugAdqmuPsLfGCfqmmPXomU8XzPrE3fKOfkHjssd5JvHH4DcMhSaNj/E6 TZ87s0cYZLM8PoCoL1DHqvbEB6cpm7i9XH5YMJSHXRgfk+csRgNSho+Nd8D+aEb+iI9y IJMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=nTjdMuxkkBDMu555BjRV+nNQ55yEVJceHuWGNaLV0EM=; b=tQs4PGa3xs2vn1ShQREU5DmdYJjDNHBzYFA0QYzAavWN0ABvUXM6dWdPheLMHS7lbR TZRENJxMzFJ+u3cUzFlr5VIyB4biJL8dEZHvouLMe7WQRYCbN7mGUi5Avv7kSfVBnlzn Sk7tggc90tdz3egHDJguvtXqgRwCb5axlh86q0COnSImEXVI/3NJgnseRTNHtbFiQw2N lXQD4EO3agoSQexRqXOyGcifogc2cBmfdsSU+or0h81CZSbvNSqeqT8kODxBEqsy+hPI +j5K1cKZkTiodB0Y7r2lU+ai7B76tKKxWkXfdo6R1JBUe3ycPUXMNpf1JuneWhvh6u1J 0oQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t3G4Zu0G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si3654203plb.105.2017.11.17.16.26.49; Fri, 17 Nov 2017 16:27:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t3G4Zu0G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966356AbdKQTRk (ORCPT + 93 others); Fri, 17 Nov 2017 14:17:40 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:37045 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935576AbdKQTQR (ORCPT ); Fri, 17 Nov 2017 14:16:17 -0500 Received: by mail-pf0-f193.google.com with SMTP id t69so2599213pfg.4; Fri, 17 Nov 2017 11:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nTjdMuxkkBDMu555BjRV+nNQ55yEVJceHuWGNaLV0EM=; b=t3G4Zu0G5KIM0LexwdyvBmcyBOsKC236JuSIS3zJhgTdGAdMhI29xGy25Pv/fLq3Yh SKnaS67AoAQcP83mePEiNN0ZCL99dJBVK55BKRgwbqwc1XJB9GuR9juQcDJPvfiafBlM 7SdDdHyF/YdatOZv1TCCyF2BTZ6LT9MWTs7Ibd2TKTHoMU787iEiyGU1OuHcXWK7F2Rm GdXQDL0rFA8PRg3f6iebOdTX3OryfTQG/tmWYZrXTyUjDOPeN05GxMy4/9i/jNxPKtEY +LtOAJ0qrCtqX3r2lhbGXvaItypmyn2gfaHBCj/mhJ3dq+9HdyTHTSlg5rb1QB/3MWgN uunA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nTjdMuxkkBDMu555BjRV+nNQ55yEVJceHuWGNaLV0EM=; b=T1JRFWdLl59nAAppzzNaT+G8T0unyurgeENAkWfW5NOXS81meQo4DOCJLDvNKxM7xN DFRAbakSS9PsPtXcDbsQAjlWuBdHTfUK0y4pyhdVZtjw5TZayYun1J6zLIY0NsajwSvP a22oIkynfJXbtjSG+8WguN8cC5n2fRScJtjw7ZcZiXMIBy4SQlffJ+aq9JkY4QZ2pG20 W9GZ7R8bphcBc9V5kAY8BVvRg6K7ClWW1jtt+h0tcxn+7jNZM1jOaOdmaKS/my+uHjOq 6v/qoV6z5trzGDi+zakMQe8e+Th4TlyHpqItbypyFdn68eHehdThagKN66yeNW8/mqeI t0jQ== X-Gm-Message-State: AJaThX5Kgi2vUcHU/1wn0fL++BsKN9McLkA/7T73jmZKUe+dV4kOoAGo ANEf4Ke4fnzuVkZHDksP3os= X-Received: by 10.84.174.67 with SMTP id q61mr6329267plb.184.1510946176865; Fri, 17 Nov 2017 11:16:16 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id u188sm7807441pfb.188.2017.11.17.11.16.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 11:16:16 -0800 (PST) From: Arvind Yadav To: dmitry.torokhov@gmail.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@roeck-us.net, wsa@the-dreams.de, daniel.thompson@linaro.org, mcuos.com@gmail.com Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/10] Input: w90p910_ts: Handle return value of platform_get_irq Date: Sat, 18 Nov 2017 00:45:28 +0530 Message-Id: <1510946132-13554-7-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510946132-13554-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1510946132-13554-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/input/touchscreen/w90p910_ts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen/w90p910_ts.c b/drivers/input/touchscreen/w90p910_ts.c index 638c1d7..fa74f2c 100644 --- a/drivers/input/touchscreen/w90p910_ts.c +++ b/drivers/input/touchscreen/w90p910_ts.c @@ -277,6 +277,10 @@ static int w90x900ts_probe(struct platform_device *pdev) input_set_drvdata(input_dev, w90p910_ts); w90p910_ts->irq_num = platform_get_irq(pdev, 0); + if (w90p910_ts->irq_num < 0) { + err = w90p910_ts->irq_num; + goto fail4; + } if (request_irq(w90p910_ts->irq_num, w90p910_ts_interrupt, 0, "w90p910ts", w90p910_ts)) { err = -EBUSY; -- 2.7.4 From 1584712123387826688@xxx Tue Nov 21 21:20:50 +0000 2017 X-GM-THRID: 1584566827472478911 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread