Received: by 10.223.164.202 with SMTP id h10csp3456964wrb; Sun, 19 Nov 2017 22:47:40 -0800 (PST) X-Google-Smtp-Source: AGs4zMa4Kpd6ZJp/xm2xrN6ITH4O0UBGYNmr2XC1vSEJqf27pL/A/AFJ1Lp5MWV5kxkxF0d1Fxcj X-Received: by 10.99.126.6 with SMTP id z6mr12765053pgc.305.1511160460516; Sun, 19 Nov 2017 22:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511160460; cv=none; d=google.com; s=arc-20160816; b=RlQvA21KVv0nM4soXLiGi6/b1r1T/fxPuCKY/NxsAxTiS5ttODJbI5ibqaAudO1XTp h7wUnFSLhc+AzSyfmngbsOm8nI6387syXz/CwlmlkDAT4lg1oIo3GwEYIJTPDBqsF9BX fNpJ10w4n13oLIbdW6kBdAf/1vAcul0te9fZvXnpglmAtE2uqnIQTeHmZl9JR2Wt7qk9 CK4XS/AmKUAqUtjYRhUint0kCYM8EWCqNEQymKGDbjf3YPQo/ArVgx/IoPwYj3SfQ6Aj baZW2xqrX48ttttA+JcuvcRnPpLwOi+dTHsr35KFvVVE2TBMF+W0gQxVdFCSadAnB5Tp QobQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=e6xnVQHlwI/hNIBgu+vjSXTZeZYsiHB5S9wEMw7OxJY=; b=d2QrC/q24GLzpDRaz5gEVWMMGJTS/MSTNMFoZ5/XvZe5su6vx5b85EL/mS5DhAGU1Z kxst1SNi/TaH2gs1i7WuisRAQ0zbCUitvjZ74hsLiSCevlYvPdCTGuiZ6KFDUPgOjqDI q85ohHmiu24gC6tKZYCqY50tzn1ENTRZDl0Uee/xcUQvztrGYYv3pdw3YwwnfEndY+n6 JpfBMXRSuDQarNYCJGOA2zqpfaNUhDQp9+xsWIoUCdrT96XKCxkcwEXZ8XqJ5idN0Lo/ y3pEoi9kmvEREXqawxD/St7onFbdRIt6y7Rp6gWRmNf8+8usyJe03xom24ERgCRk4XT+ e0jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=De+5iLHA; 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 w21si8199725pfa.3.2017.11.19.22.47.30; Sun, 19 Nov 2017 22:47:40 -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=De+5iLHA; 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 S1751299AbdKTGpn (ORCPT + 68 others); Mon, 20 Nov 2017 01:45:43 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:38770 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751101AbdKTGpm (ORCPT ); Mon, 20 Nov 2017 01:45:42 -0500 Received: by mail-it0-f68.google.com with SMTP id n134so10621563itg.3; Sun, 19 Nov 2017 22:45:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=e6xnVQHlwI/hNIBgu+vjSXTZeZYsiHB5S9wEMw7OxJY=; b=De+5iLHA+zoVihmiD7ozAF1AWgmMir/NJL88InPpI5ZJxLpcrSpEam/1nvFHjY3ZCj Bir4elmM7yuoDCXWayI7kD4TWYl94YvV1pzWinue9nFPVeDq/zuyk5QJvTZv6yW3CA53 S0ZwBOHoq752wrXhKTUphERER3IVDu/XEBS5Qaj1naPB3xlLdQjS995R9mbih4eGhRqc LOP6CPB1cB+Er5pJ6roTWeRChlo0ub4U7PZxMTZ+p5tUF9JrNQ4uV8AWcAqR1DtliIny p9uBCchUNw4Y8NHgzEPLj0O/wXgmXekYNUTtmMbC3mAmxfbKhTHwaG/olyfQ43Kvr23y m3kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=e6xnVQHlwI/hNIBgu+vjSXTZeZYsiHB5S9wEMw7OxJY=; b=dLHt9lq9T2J7eTCH/6gtXg6kMNPFrwNP1OwWaLpeh82Jf1aa438tWbePVGrrY0gKVS 5g7fobSm3IljunvSE4iFy+NwtI6WwhWy8Dck7o/I8bIvjIQwIXXv4wIUTePgWR33dzD+ Eu9y8O/4EXsdz1tdjpPL6sge9g3i8GOu4YS+Y8oipSIdVwOKRFL1XV1ldSbnZ0hVOJSz NkWFYMJXfZ/AiFIB6h7E2ACjzK08A355h1SQzs4fYlZg7/QmSlTrYdrYWPC268IyZ6xP ShrdzH9AWLUaW7pmDLUM4xgtYIcBxJnauJ5g7/h8pHPRTEAtBtY0RmDvyL1pLUhPHc+5 Gqug== X-Gm-Message-State: AJaThX68PSFrMceIrCJ9IRaKc8u04Cae4u6/A9AAd7mpwYkSu2ANgwxL IwGcNc4ol6KvG8Zl5Bn4KNY= X-Received: by 10.36.13.13 with SMTP id 13mr17023959itx.3.1511160341668; Sun, 19 Nov 2017 22:45:41 -0800 (PST) Received: from [10.17.129.40] ([223.31.70.102]) by smtp.gmail.com with ESMTPSA id c36sm1820986iod.11.2017.11.19.22.45.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Nov 2017 22:45:41 -0800 (PST) Subject: Re: [PATCH 4/6 v2] mmc: sdhci-spear: Handle return value of platform_get_irq To: Viresh Kumar References: <130df0c2c60ed6a0f460b68c586cc0a4167aed0b.1510997223.git.arvind.yadav.cs@gmail.com> <20171120054415.GC6125@vireshk-i7> Cc: ben-linux@fluff.org, ulf.hansson@linaro.org, adrian.hunter@intel.com, vireshk@kernel.org, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, carlo@caione.org, khilman@baylibre.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-amlogic@lists.infradead.org From: Arvind Yadav Message-ID: <477653f9-5263-678a-fa26-498d744a8639@gmail.com> Date: Mon, 20 Nov 2017 12:15:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20171120054415.GC6125@vireshk-i7> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi viresh, Could you please acknowledge a latest version(v3) of this patch. Thanks, On Monday 20 November 2017 11:14 AM, Viresh Kumar wrote: > On 18-11-17, 15:03, Arvind Yadav wrote: >> platform_get_irq() can fail here and we must check its return value. >> >> Signed-off-by: Arvind Yadav >> --- >> changes in v2 : >> Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. >> >> drivers/mmc/host/sdhci-spear.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c >> index 8c0f884..900838b 100644 >> --- a/drivers/mmc/host/sdhci-spear.c >> +++ b/drivers/mmc/host/sdhci-spear.c >> @@ -82,6 +82,10 @@ static int sdhci_probe(struct platform_device *pdev) >> host->hw_name = "sdhci"; >> host->ops = &sdhci_pltfm_ops; >> host->irq = platform_get_irq(pdev, 0); >> + if (host->irq <= 0) { >> + ret = host->irq; >> + goto err_host; >> + } >> host->quirks = SDHCI_QUIRK_BROKEN_ADMA; >> >> sdhci = sdhci_priv(host); > Acked-by: Viresh Kumar > From 1584562741798960508@xxx Mon Nov 20 05:46:29 +0000 2017 X-GM-THRID: 1584465298564879160 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread