Received: by 10.223.164.202 with SMTP id h10csp1156295wrb; Fri, 17 Nov 2017 15:04:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMb8L5kPiia7GZ9OI0gBG3JbBI5Gc6CzGBHvIMD5t4Rc18ThZk9NbiIOzWn0TdBwmVC7zgo4 X-Received: by 10.84.225.134 with SMTP id u6mr6603270plj.69.1510959882137; Fri, 17 Nov 2017 15:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510959882; cv=none; d=google.com; s=arc-20160816; b=G1D6g0LmnHaiB7+QHQn28EWW0/inb3AsKih7sgfwrDJ4n413mrl6sQQ2IiEK6LGfps Ch+Yysn/EvKJkaGbA6ZBDq+1Jkjc6rTrhObDIxbsxVVIjL0JQ/yJGJwe8nnXxsX14PCj y2M5MSmNqLghpjfYtOM79g+ReeufXRxHFLI2SgFGmlZssnOEXCPIZjQKLNox45LXt0eo eq6zzbaYWqbuqxj/0neorGT6lm3YHYe4Jw1cbUVk+QFb7yn4u2CQiNCWEVmdkHcqh7y8 LnUIqCA7uKJzkrthA3t6CIg3si7IfBVp1BjleO6TZowbEsTBEWqA5s63GLTr7XhNkosf TtbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jcB2RkgZWDXGnWiyBhHdXl25P/0uQ1WDypLq4Y3keFg=; b=Oly0sXXtqI08FhiyQP/p77hCnCgvx234Jxnzs242MneUb86Vjp5pQyxmEBKeXj4Nxn MTLBDy186JEBnbeKZzjN/rUmyQipBrdEbvN23Hd7A3TiGm007Cev/dEX47d39eMVIAtJ mvhh/k1BbzNBh9aHi5Tt8rdTqtDBuf4GY0XUm70p/E6BNWuOoVt9dh5sBYaWlFx6PKfG 7EwVNUKhAGD6bA2gGY7VeAtpBOHkf61RUsL+z7LRhB/5anRQ9fd0yFSyWxOXFRuJXw7F FnvPCBBKuTzmemdTs2gmw6X/FJLVV1Jhp9d4kVtL1Xu1xNLDCSWtDJVkX83wny8AnXZ+ MrPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vp1VJ9Wc; 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 q61si3520730plb.218.2017.11.17.15.04.28; Fri, 17 Nov 2017 15:04:42 -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=Vp1VJ9Wc; 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 S965643AbdKQQfY (ORCPT + 93 others); Fri, 17 Nov 2017 11:35:24 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:43153 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbdKQQfQ (ORCPT ); Fri, 17 Nov 2017 11:35:16 -0500 Received: by mail-pg0-f66.google.com with SMTP id r12so2305346pgu.10; Fri, 17 Nov 2017 08:35:16 -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; bh=jcB2RkgZWDXGnWiyBhHdXl25P/0uQ1WDypLq4Y3keFg=; b=Vp1VJ9Wcb+ssoTdEYn6eXCW+pFPB5ODRXzTVahZuDxKNHM7b0FQus3sVyDKWI6SD6s YuM1Hn5bZHXTPYnZRVtS+W20Z/4Eln+nQ9YkBX0iAR2zoDGYrCiuV+Df16WG92p+9vlA +tuXlPa5g0Bo3hrsdZ1gcr6Kt7gAzauUEC83o+oQzlcPwudfWQJRCY9x354DSwyEpLwz r3z2kBYNDBj4tycUl6OXtZ13FEsxouI+L6tNQEXOB4ysrsa6RENf6V5a2d53mVA/qH2X 5IyKVbKcF26CDkVSrk3reiMVqkUDt2T2WGvkkXdovA7DfSZmOrAuj2yecJIqRED20FQ5 L4Xw== 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; bh=jcB2RkgZWDXGnWiyBhHdXl25P/0uQ1WDypLq4Y3keFg=; b=EjZjgqYRQb8tVtmOWvhKcYlPOmU4w4BeJys8rrmcL9oGRGCKKRmdlqKLhe0JEsxMIG 3NJeBzGUkcvYZDAE1CY/DXBBWVYwmnznGmojhycjCe+k2NE7+n/Opx2FViTtVOTNheyg iQuV7GzwjcqdyGHsZMs6vU86E8PrjV0gHTAWuaj2k6goOwo/V3G9m62Sik2aMrRDqbks TbXNfAnsWFFqWbTBVpe6IZ0YVNeNEGZp3EdT9FPO72Nwzu1FePPohsrRo3OoOiu5VdOB 87B8NEcNMGRSC80LPgGMTIAX0pp+jH6+J1cXI8pqaNSPimXv8PjmKSDX3CukIqtYqYxA mlLg== X-Gm-Message-State: AJaThX6fhNZx4n17nZWpPzJ5KURjvMlYqFETlJDoZrAvZ97111PY/nHM B5ZfHSxY7v82hWOrCDvSJD0iQw== X-Received: by 10.98.138.149 with SMTP id o21mr2630961pfk.225.1510936516347; Fri, 17 Nov 2017 08:35:16 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id t2sm9669140pfk.90.2017.11.17.08.35.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 08:35:15 -0800 (PST) From: Arvind Yadav To: ulf.hansson@linaro.org, wsa+renesas@sang-engineering.com Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCH] mmc: usdhi6rol0: Handle return value of platform_get_irq_byname for card detect Date: Fri, 17 Nov 2017 22:05:07 +0530 Message-Id: <8fcf045dd4601511186b828d1911ba4659d8f923.1510936216.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org platform_get_irq_byname() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/mmc/host/usdhi6rol0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/usdhi6rol0.c b/drivers/mmc/host/usdhi6rol0.c index cdfeb15..5a896de 100644 --- a/drivers/mmc/host/usdhi6rol0.c +++ b/drivers/mmc/host/usdhi6rol0.c @@ -1749,7 +1749,7 @@ static int usdhi6_probe(struct platform_device *pdev) irq_cd = platform_get_irq_byname(pdev, "card detect"); irq_sd = platform_get_irq_byname(pdev, "data"); irq_sdio = platform_get_irq_byname(pdev, "SDIO"); - if (irq_sd < 0 || irq_sdio < 0) + if (irq_cd < 0 || irq_sd < 0 || irq_sdio < 0) return -ENODEV; mmc = mmc_alloc_host(sizeof(struct usdhi6_host), dev); -- 2.7.4 From 1585168669044626426@xxx Sun Nov 26 22:17:26 +0000 2017 X-GM-THRID: 1585168669044626426 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread