Message ID | 1510950502-22565-6-git-send-email-arvind.yadav.cs@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3115E601D3 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 17 Nov 2017 20:30:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22D8F2AD93 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 17 Nov 2017 20:30:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 176412ADB8; Fri, 17 Nov 2017 20:30:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8DE7C2AD93 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 17 Nov 2017 20:30:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=tW4JsPDc+xIq7Ho/IJXV/kui+1A4mwUGxmBj0dB+kZ4=; b=hyxQTIGiMETCD1jeck0lo5O2C4 6ht7hut2MGDza1SR393/+PqbUUGtX/E5AqGGyBikCVftlVJ4vy91R/kVrgzVC2ArMLMy88SdoLn7Q SutiQJBLk/z5g1MN8ilV07PUh6KyKk5EzCxvCDrtje4aPJs23c8EwGhN3eex/B+1buT1b/znDBv4y 36+KguZZijGoJAph7RzVCMXy/jiFsjXkiRfpxs85YogLafld0va53/MfgUtPAPLyoVneBXfYNxMo8 6b8rwrq8aMj01kizA1EyZtJoH1U/PcHvUk1zh7/5HyOvWkuB/5Mv6jj6NepIBLMA1+9yZXTFCq74X fDJ6TDLQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eFnHI-0008Fg-Ox; Fri, 17 Nov 2017 20:30:20 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eFnGC-00060M-CX; Fri, 17 Nov 2017 20:29:31 +0000 Received: by mail-pg0-x241.google.com with SMTP id 4so2750761pge.1; Fri, 17 Nov 2017 12:28:52 -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=IlQ4Hjr57iiMnlfa87WTqhAOZZeuYyXoUSlaXXwaHjo=; b=XNMSczI0ruGauw3kLW0hVrqtTtYrs+i0ngFMuUT/wY4CnrGuA4N8ZXnt6yr3dmgLYf vN+59459WgJWKQNVlnpH+fkFADMU3rQKjjmM5amHFFGETJUYShb2UOrllzdtLKtbR52h +2gIXi0ugD92FnqYhzzHkBg5oBBluYir7d6tQAw0rM/pGQ4elMIWGaxjZL2adiRDLQIh pb024i8TZv6SxRpeGYz4hQH6jYc4t2FUWQBRAYrngnRzn+H7e+kv26WnoPGrE+fhmhHL ywFLnZvaV1FCWKsiJs9HxBukOkADORHVFof6yM6CzVSjm9wzvYGHrFlT/edyhedctkx4 YbUA== 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=IlQ4Hjr57iiMnlfa87WTqhAOZZeuYyXoUSlaXXwaHjo=; b=TOGPfRvuqjkLnOY8fQXRF8iQpCCtIHR/lqxJSJYa1FEQsqTvm4kvUzThZJdXvwM89W 1ZZyj6yLz11MMa15oxoretV/0cCgD9XUIu/Y8So26A1p3puxRSTKGDKyfOAlEDb8gqzl SQQhK/YzRmzqEKYbOv5fjyjekDx2hdv2qIxOwjtteCL/DplH4E4vB584Z74guhP25bcQ wQmIcpmKKdbuBtoSpcCC40YxPpmRKRZ68USyIA/DBZoEijR8d/WhNeYdgrhUmxUMcNqu Si/B4tnOtSYVW0SfShj6U4A2GOcWWAEfJ3dyV4JWQ4a0w4F8XICT9fygUn/2PLfkSN7c /bKw== X-Gm-Message-State: AJaThX5rXeHC911tq9d5gW+jzyVD13yTaSz93EWsiTcV0Cvj51ziNz/a lw1RbUsRyk/od8diMrZqDz8= X-Google-Smtp-Source: AGs4zMb32GAfYhNZJPz5+0s6rgZxf8+AQ2x2zKNleMjK3oiQXvbZpPgrtZtoUni4x7jB2NPpR5jlAw== X-Received: by 10.99.113.91 with SMTP id b27mr6186366pgn.351.1510950531867; Fri, 17 Nov 2017 12:28:51 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id n72sm9382740pfg.109.2017.11.17.12.28.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 12:28:51 -0800 (PST) From: Arvind Yadav <arvind.yadav.cs@gmail.com> To: 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 Subject: [PATCH 5/6] mmc: sh_mmcif: Handle return value of platform_get_irq Date: Sat, 18 Nov 2017 01:58:21 +0530 Message-Id: <1510950502-22565-6-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510950502-22565-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1510950502-22565-1-git-send-email-arvind.yadav.cs@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171117_122912_860730_75A64350 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 53fb18b..481f2c4 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1405,7 +1405,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) irq[0] = platform_get_irq(pdev, 0); irq[1] = platform_get_irq(pdev, 1); - if (irq[0] < 0) { + if (irq[0] < 0 || irq[1] < 0) { dev_err(dev, "Get irq error\n"); return -ENXIO; }
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> --- drivers/mmc/host/sh_mmcif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)