Received: by 10.223.164.202 with SMTP id h10csp3454749wrb; Sun, 19 Nov 2017 22:44:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMaXtLUaNJ8AVQ2NkSZ3KhwWBCsV9RppBFLsmVW3EvBxcSflsLNV6o1F309lOrs8yVos2kfT X-Received: by 10.101.97.81 with SMTP id o17mr12234150pgv.363.1511160292025; Sun, 19 Nov 2017 22:44:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511160291; cv=none; d=google.com; s=arc-20160816; b=eM/ti52RzlrqzT/Lc8lvObbYijZTazsNE+O8gm2ovkP9fu6OVt5Be5+NFLWNwfyXp5 vdwJbLN6ZhhMxOyQl7DL+SJ5yKPDN+Hzdzkn2B/VM1Znrul/S8e5yNq19qg/8C3Xak4f k0/cc6/ytEUfDawqGZvEuVYEPPENosVYFU2aHCnKnrLVNCl+QFEzqL10p9OtJyzD2NdJ eU5nTLjKrIy6W1PLVvXNIHzkwL2WH7WfoVvteBazlrUiW1jswYw05sbvfJZSaxhADraj 1XJOuCxEJDHFUS8QHM+mPEvlxfVEfWSXcpRzqLr0izC7N3xnpFf+LcLNgSRCpWH+g+cn EOEQ== 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=LJISq21vrDJ0rUGyhCYwIMVjJ7rAo76qEhQeDqOgzcc=; b=gSagHJN9jma/rFHTBbavvaVtORUnaIwcNFGj9LoY2s6e2cOMIrp9WCObiA6lKyrVbA e3Yve70IO8vrJjeCHjvmaxv+ZjLM5i+/BSDrRHWUZtCzIDvYbiz4eQ+hhaIPQPldHaZO 7gprc2hbFFoyeHTtnhoYOgPVtnxUgVozCi9cEKx3S3bR+zoOBud29RY85IlHGbwFDdfR dtyrKxxVONn2ltR04WZ7le3+ILmx73Y5rw4ZNL407CYsP9QH92sNirjTaALAAa0nA4+1 WhoIN07QnLVKrKQm+z1JdoQK8gTtBrYdSEc2x9aPoyhg/4eFJezslvWSrimSf0FSxpbC hdJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nHNtCUvr; 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 h9si6867258pgr.527.2017.11.19.22.44.41; Sun, 19 Nov 2017 22:44:51 -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=nHNtCUvr; 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 S1751155AbdKTGoF (ORCPT + 68 others); Mon, 20 Nov 2017 01:44:05 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:35633 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbdKTGoE (ORCPT ); Mon, 20 Nov 2017 01:44:04 -0500 Received: by mail-it0-f68.google.com with SMTP id u132so10620704ita.0; Sun, 19 Nov 2017 22:44:04 -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=LJISq21vrDJ0rUGyhCYwIMVjJ7rAo76qEhQeDqOgzcc=; b=nHNtCUvrPHdnp4C0k8+QSPx/RxwnA3dnKB1K1lwXPyJyOpMKJqOsDeMW0cpBBeLZXr u4xhDCCIZ7++ueoTXJicfGTsx/j3lVq/1A6Lf/hETJzoO5YUUKZn92ygapshHodsYGoy HgESbuSDhx9kUZ9v32ZGD1WqH9DLgv/RZYzYugJinThEo4Q3FfE92b6gQ1pAsAtrB072 qWerKGkul20g8CjVTFPg12K6RD46JBIKNjhjbhwcmhk+AEZU068SIgL2dPf8C51Y3160 K34XQcatLGgaowOKWskwQpVU7t8I03vsY1+9s42qYQcxLlKjrmu3DM8vlmJcmGQ2/7PQ 5j2g== 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=LJISq21vrDJ0rUGyhCYwIMVjJ7rAo76qEhQeDqOgzcc=; b=XV8QDrJaJcLjqmjnS4bqAzcbncZFbOaK8jpwCauaYGGE1h02yqdhD6Lca3uwTgbYfp wvi1HpcnLnoGrmBHl6Kc9WMUn5wuSTEGW0ZOt9ThJxkc7Ts/ERZzNtzEnkVMCkSvb/tu 5rqRk9U+e+MrB72CIHU91Nv4TeV8DxnkYQ0xOdU3DGKa9CdKMcFKhIpm79vuUdvCSUb5 Fqjdf4phrMVSu1eXpGxopfg+/MdXfQ9ApyqBQZJuKyjX9V2InhVHhFmIDmT6WHoppCpS ETQKMTRmFsRPiYrMY8i4CrReDtxnY26vxDt6nEr14Cx9/OKMSeshuPJ6mgryj4dkWzz+ S/SA== X-Gm-Message-State: AJaThX4U/4JdHg7anPQb7C93ddJ1XdBw7TM7X9cJtlZBSBAZChPD2P6j Sxcdu+W5G01id28jnS06H/8= X-Received: by 10.36.104.211 with SMTP id v202mr18088652itb.153.1511160243624; Sun, 19 Nov 2017 22:44:03 -0800 (PST) Received: from [10.17.129.40] ([223.31.70.102]) by smtp.gmail.com with ESMTPSA id e68sm2153470ite.0.2017.11.19.22.43.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Nov 2017 22:44:02 -0800 (PST) Subject: Re: [PATCH 4/6] mmc: sdhci-spear: Handle return value of platform_get_irq To: Viresh Kumar References: <1510950502-22565-1-git-send-email-arvind.yadav.cs@gmail.com> <1510950502-22565-5-git-send-email-arvind.yadav.cs@gmail.com> <20171120054340.GB6125@vireshk-i7> Cc: ulf.hansson@linaro.org, carlo@caione.org, khilman@baylibre.com, ben-linux@fluff.org, adrian.hunter@intel.com, vireshk@kernel.org, maxime.ripard@free-electrons.com, wens@csie.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org From: Arvind Yadav Message-ID: <6c854ee4-c0c9-be2f-cfdc-8feeb6e5ab20@gmail.com> Date: Mon, 20 Nov 2017 12:13:55 +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: <20171120054340.GB6125@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 of this patch. Thanks, On Monday 20 November 2017 11:13 AM, Viresh Kumar wrote: > On 18-11-17, 01:58, Arvind Yadav wrote: >> platform_get_irq() can fail here and we must check its return value. >> >> Signed-off-by: Arvind Yadav >> --- >> 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 1584562616395440641@xxx Mon Nov 20 05:44:29 +0000 2017 X-GM-THRID: 1584391330074124598 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread