Received: by 10.223.164.202 with SMTP id h10csp1520614wrb; Sat, 18 Nov 2017 00:22:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZJIzP7Hj/Td8VD/LvBEShC6/QT5/xMxmebbWtnJWh8GsTRYYVkP25NG3HoDzV6t96X5f1G X-Received: by 10.101.98.131 with SMTP id f3mr7468317pgv.366.1510993326736; Sat, 18 Nov 2017 00:22:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510993326; cv=none; d=google.com; s=arc-20160816; b=G42JFccqpb3mPJgjxixpE0q3b4llxaIJkfZWbgl7YyhYA92JEjFs3qKA3cqGxLpIuI 5tJGeA1OEhYk89lZEzDrwlw1uFhaq5AQANrJJhxuYfvWtU7Vr47vGegJen5dNv6XzgGe erfkyBxQEgG1Sz3JPUg3oko60zLFJbn2nTrQxKaJtP0d6v9uioxo36gfVOPVb8FbaOC7 Ci69qsSfOUOmfaP+i2VWaXq9Z/gCPRQcgbxrB6GTvGy+DxaUZGcDKlj1LvobOwaq3fRN 0Wtcy5huTltgIwtLbWdIYpq6FOSn9hfJ83E85ipBAzzzXlhmoJoX4fv/A6aIOrHIy2rH ro+Q== 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=REaWq3oDU1IKK2APYQGE0Qzgn7FLER4dqRHz+8+rMJ8=; b=Fiu/NYDKITmt+ZExgMj5wH6ENchbLUuOklJpw2X06VwAo3r116nwY0tdZ5WItFnYxd fWFhXRsVU9bV502+2FfmPlCa9nz/3CqefLwb7QVyNPzpJ+e0CtqsI/SF6KN0JLhIFxzG TRHcJbjsqLhcEgD+NKlaS702xAVwWLDxvNPGBX7WsRpVf90umvNoK7Ac/KhhPhamcw9M tew58yzxZZQjUUJpPYCORgiyyC7GnrVg6GsVzADAe4k3sJh8fIicR343RR/dLB0tnygZ rQqS2AzggdG3705TH7dlZzxkazsz4Kd7gzXj5MUlV+qEGdYXLWhXLJ9GxrT8a6UUhkvv zFMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gOW/Xu9J; 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 i12si4284091plk.623.2017.11.18.00.21.54; Sat, 18 Nov 2017 00:22:06 -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=gOW/Xu9J; 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 S1761089AbdKQUaC (ORCPT + 93 others); Fri, 17 Nov 2017 15:30:02 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:44413 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761011AbdKQU2o (ORCPT ); Fri, 17 Nov 2017 15:28:44 -0500 Received: by mail-pf0-f193.google.com with SMTP id n89so2710620pfk.11; Fri, 17 Nov 2017 12:28:44 -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=REaWq3oDU1IKK2APYQGE0Qzgn7FLER4dqRHz+8+rMJ8=; b=gOW/Xu9JPqvYgSNwghwr2U9urILEiRhEyPMggR9vWn8zdZxxDaQGhrNDak9EbPasEW C97na0xFvMceRHCDCXoU7QmkTgIMPOOPfGeIVdzkrVoeh9WfaTHzF/U6hQQsfKYPA/zM NAc28UndXwcgC2q79Pjv+XP4O4DB43V/pRwP7f4k/rqil8VEyz98Qw5VGK6+OgDkDv+7 +dn78ycvNTAMzxU2k+z8H4v3lkmnv2seerXW9jhkQLu/HDa9rx0MkvBm/sbIBlaeJC6V HReymGkJ5DgSSF5aWbyYEb0AaRNu+DnRxOnHvImv8eZhiPyrvBLM+NktzuO93OLzifVZ w/lQ== 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=REaWq3oDU1IKK2APYQGE0Qzgn7FLER4dqRHz+8+rMJ8=; b=pmLgBw55AseQlJibZDQYvCdE3sS/3E+5bVQWJE9Tyjm6I2aQN2iWnMWqKJQenGi+Vl njcFolTDZv57z/6ojPeBKredT6LLi9YmD2Q5RzWF9MF6CSaw4ifrL2GbryC5yL8t1ttf xVEeTnH8VTWoT1UF7niQS20+nsSxAIP+1tSEQOZJMGzanNnIQSpHcPFzADK64IMkHRWv chnn3Fim1p7S/SBItU5jtV3ohZNIi72dGCfNEoRSH5parda/7mRSRp8E/GiaNXGwgnTU 99o1yVWZhgZ2qlrUu4q8DOj7XPIBPsWw/zptVzFjKBBpA0dxMllLt3KojqBIt27jgJUS vXKw== X-Gm-Message-State: AJaThX5XZg/C3uOx2OvooT2RMMEB3JlgSh6Wy7m7pXo6ohkIGcKkf/RG /hsWuaQx3YX/JWE5hHa5eQY= X-Received: by 10.84.140.235 with SMTP id 98mr6546280plt.428.1510950524326; Fri, 17 Nov 2017 12:28:44 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id n72sm9382740pfg.109.2017.11.17.12.28.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 12:28:43 -0800 (PST) From: Arvind Yadav 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 Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: [PATCH 3/6] mmc: sdhci-acpi: Handle return value of platform_get_irq Date: Sat, 18 Nov 2017 01:58:19 +0530 Message-Id: <1510950502-22565-4-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> 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/mmc/host/sdhci-acpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index b988997..dd8129e 100644 --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c @@ -566,6 +566,10 @@ static int sdhci_acpi_probe(struct platform_device *pdev) host->hw_name = "ACPI"; host->ops = &sdhci_acpi_ops_dflt; host->irq = platform_get_irq(pdev, 0); + if (host->irq < 0) { + err = host->irq; + goto err_free; + } host->ioaddr = devm_ioremap_nocache(dev, iomem->start, resource_size(iomem)); -- 2.7.4 From 1584100037187142716@xxx Wed Nov 15 03:12:00 +0000 2017 X-GM-THRID: 1584100037187142716 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread