Received: by 10.223.164.202 with SMTP id h10csp1381648wrb; Fri, 17 Nov 2017 20:41:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMYYzFw/rb5Jc75o6/LIqapGgxz93xqQadVP7wWfz9/CWRX4oRS4nKApTKibWzlfznrLFM1j X-Received: by 10.159.211.67 with SMTP id g3mr7433549plp.381.1510980113405; Fri, 17 Nov 2017 20:41:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510980113; cv=none; d=google.com; s=arc-20160816; b=SVt0Z5G/BgWZCdiUeJ+2zwarwAgnX4jRWFIe5l7NkMV8QUHFgZ4emkjhOMMtzOlTxO WDfK1PtyOw+nWM+zX7vAsIOyOfF824quX2Y1mNAmpm9ppxFgo1BIDSMhu9L2bCnkGcB9 mp2/pXPpj3ZJ07vJwgI9aqsYQ3HHBgE+e6R7zi91KI/9TpK5ocpA38CkOg0V3KcjnN8d ZRmIRGdpIvIorkpLXZbkIV/vW8HgSLJKZWlSz2QYDf0SE6vdSOlKSTIuCFQEh+7Qv0Vn fvhpK3sPfKOB5t897s4xjhNkRQDBBBTxL4oXnhXQuQOfCfVa3vuR8b0tlQ13xk+p5T7t HJsw== 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=JURW9hkFCIeQizHVG7JTE6iL7phck4hTisV0Z5LeZg4=; b=0l4zkfOltP4aDdAVzUoAeLFI7gsdxZfO+DKXURCOpDHX5ZH/8tICx8Zo9xlSpFLGLK aA2eYJX49SfYI1RebI/m00mDRiVuIqzwxlDEDu+0QJlSZFJ9e6d7+STv/4G9wEdJw+Cr 91xZmaA3s0UKx3Wj93ip65lTKcAtJf07ib/KlMMJ0v02ZhggkGrCJQb2ZaRiEblInCSw cNdh8oe1ceNOZxKcbj+D8pHgIOE6WxuorXLPDG0rvFovMuzNK/c5Hpr1QYFedDZEyf4m FTkg/xpqPlt4eByLSDslhn+0pkJCeSghuj4mFFoN14Tvcy3yGfKpAlsVWtIoEapMV068 dDhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cxb9udmN; 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 h69si3827026pge.382.2017.11.17.20.41.16; Fri, 17 Nov 2017 20:41:53 -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=Cxb9udmN; 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 S1161690AbdKQTRe (ORCPT + 93 others); Fri, 17 Nov 2017 14:17:34 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35630 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935587AbdKQTQV (ORCPT ); Fri, 17 Nov 2017 14:16:21 -0500 Received: by mail-pf0-f195.google.com with SMTP id d28so2601915pfe.2; Fri, 17 Nov 2017 11:16:20 -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=JURW9hkFCIeQizHVG7JTE6iL7phck4hTisV0Z5LeZg4=; b=Cxb9udmNkJTO7eee7ipRTvxr+56U2UD7l6XY+6UFT9IZSLqE6aWc1nnq1A9DdNMyBX Ab/rnJrjUPYe6MjNGZWSH5Oz/+l7grQBMJQhqxHAXCRk8NitHphbjdEpYTd4AhnjjK/8 2TN07A6M9PZ04Yx9v6UQMjl53pcOsk6Yz5ZjZV68SXamdeUwCmA2bLdUjp6rcbWYm9eP 3akgrtI42FlflyyY8/nPtSzd46ZKziAfxYsD9jk7bgu0e6kadlgyu982ajkoXpBcoQ5f ng6d9gBJrf+E0/qjZBQT2ixecuP/vjjxiDiK2XlFk2bvKJsm1ln/b/cJr9sYZ1GS6p5B ByzA== 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=JURW9hkFCIeQizHVG7JTE6iL7phck4hTisV0Z5LeZg4=; b=UYTqn0VsrSLE/ne6oD71+Wftd//Va66p3EL/rZTMloyX5s4PAlhFLHqeNltpuICKOj dMD5fLm4oeNZuZMFJAIo/lbW//9HuTFlGxLPCt8t0/XP9a8lhAadE5ysGNtU6YZrp/++ /+/G+BIfIlXoakmVM8abpJFTAMB1WQygtuJN2jrEYj0hCyZ4K70eqLOGAj7iNo9mtyHv /9365FweJuM0sJoetJyV83rF8SI8XnAYeXj2rzTLuCXtEMU5nRkeJlKhMUeRxwGeYam7 fW8ipKlZOPOSI/ZauaEyuFGJwqTlhc0qwyCYXCHBf42HVF4r71ClGh5d605HuXKrn91P wulw== X-Gm-Message-State: AJaThX4bGL63TyCi4fXTdBx5mYwG3w077SKmkFLH1bV3JJhWiRMMW97F r5C6WV9eVN4C4sRAKaix6oM= X-Received: by 10.99.124.73 with SMTP id l9mr6048075pgn.330.1510946180275; Fri, 17 Nov 2017 11:16:20 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id u188sm7807441pfb.188.2017.11.17.11.16.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 11:16:19 -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 07/10] Input: sun4i-ts: Handle return value of platform_get_irq Date: Sat, 18 Nov 2017 00:45:29 +0530 Message-Id: <1510946132-13554-8-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/sun4i-ts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/sun4i-ts.c b/drivers/input/touchscreen/sun4i-ts.c index d2e14d9..2753fd3 100644 --- a/drivers/input/touchscreen/sun4i-ts.c +++ b/drivers/input/touchscreen/sun4i-ts.c @@ -315,6 +315,9 @@ static int sun4i_ts_probe(struct platform_device *pdev) return PTR_ERR(ts->base); ts->irq = platform_get_irq(pdev, 0); + if (ts->irq < 0) + return ts->irq; + error = devm_request_irq(dev, ts->irq, sun4i_ts_irq, 0, "sun4i-ts", ts); if (error) return error; -- 2.7.4 From 1583694173340911643@xxx Fri Nov 10 15:40:58 +0000 2017 X-GM-THRID: 1583694173340911643 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread