Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp863878ybh; Wed, 11 Mar 2020 12:21:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvNzvvRpWi1D2ZFBVMZxanhZnblOdtCDAj/K6RasexMOpZr+A9kGkgYPCzsCSvbO4A5a1S1 X-Received: by 2002:a9d:27c7:: with SMTP id c65mr3676311otb.318.1583954476309; Wed, 11 Mar 2020 12:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583954476; cv=none; d=google.com; s=arc-20160816; b=ENGeDDTMb857uhTUMuz2SnWOlgvx77v6yr0p8TI6/D71r9kH1K79c++txtL9iYqf5T 8XvPe6wDwLNiNoSwFjWBl+4tSiNo2Ncw8Z0LrDjyyLCS3ysgI7zLUs9aRyRxVZQqDCDM /Iyqc1cHuOf4aCu7kwSxZFIf0UcyH073GFRC0+WFt/+ITDSDpfDIUZ8zQqibkYZR7cWP 6ElFOxzyqWh9cs7kDbLyuH0TzRTcD/ll9qjJMg8JGQA/kSU+9p0vTfd1gpVIG5nudjiH Vejt1HIpFCw13/aVnSvQUrwO7U8bYW6FKfV8+0wccqJElrCjFBt5E15D7guq6PFslm2Y XaRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=iN1lIy0/f67JfCi9KU7uh6n3lgkv7oAoZ5NZ3robPh0=; b=uo+54N5KukLSHbkONHKO52OeQuw9iueRPbk2MSeSHTd83+VapfHyrbk77DX6HKu7/L LQi61YooyEJWzFjbK7R/nHuXwI0/+DeisEUOO0BegBVCvhOH1Rtstmba4bn9xdaj95kr UhrXtj2Nmiob5PMg0QoJhXPk8WWZqhzsDnYstPnJhB7se3FligWu20+GQFA7ugj+qvlB JaakdC/sJgFV4cagtJgix4sWn1Zyp7ZVJ+4gOch15CtxtpZGTFMGS31Exp9OnXxSqbzu d2p/NHr879HQ2OSgvL1zIVNfx5RF/UZzV9DUFmcMmnCjdCUGkhJRTJSTYAznJ0Mmne3J fHPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BfRQMt0i; 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=fail (p=NONE sp=QUARANTINE 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 q16si1591036otc.293.2020.03.11.12.21.02; Wed, 11 Mar 2020 12:21:16 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=BfRQMt0i; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731115AbgCKTT0 (ORCPT + 99 others); Wed, 11 Mar 2020 15:19:26 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41716 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730807AbgCKTT0 (ORCPT ); Wed, 11 Mar 2020 15:19:26 -0400 Received: by mail-pl1-f196.google.com with SMTP id t14so1533562plr.8; Wed, 11 Mar 2020 12:19:25 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=iN1lIy0/f67JfCi9KU7uh6n3lgkv7oAoZ5NZ3robPh0=; b=BfRQMt0ipgIFCsbepxc9l/xVpH3h5JT7quohnIEoWdro74//CquJsdriyla9b7QShh xdhsTWb+9hwl8ivWbbOHSq1aRRafUqRVsmh1R6Y0L5NZuukW/PvO/p81LYdadlpHmfPr 3fnhkVIi6b5tCbqP534B/yAnACgpkdWA8GZpXzMMerkdn+wN1Cio3sYXjP3FwGj0mp9K SfnpSzxn4zW1Mk5XGUvc3b+PWSrQOU2Ct2eQnaifytiDdyzu1F5MMTpbTMthiWYkF9ZR hwXA0ViLm+Uw4fIAWd2KBIPc6SiX0DWe2CFpr9qpPwvViXhLGUlw3ZRRnXKWakd2PtCl rzJA== 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:mime-version:content-transfer-encoding; bh=iN1lIy0/f67JfCi9KU7uh6n3lgkv7oAoZ5NZ3robPh0=; b=aVucX9oydasVrbpxKSSYCIJ9RmJ2910a0umlmKfvvvA0NERJTRvGHd3SDdTFMb7l3Z ltf2jE/NNDJOObTm9O3YH7hudfwh0VJlkV2UmJ/2TRvqpeN+QE16zTDuH5NwxrFZYhz2 5ly2776cSrS3VR0FEf31I7f/AUPGsL3vATiNoqDsUFFLJMapu6IY3kA4PjlQhoHEIAMB jvHKSOY86Axucv8+mgu0soYnu3kMrmH3A1h2MD/JZGKCTbh6W9q2iWSGvHa7bCi84j4g e8iRdqK+4kKJsS6RfbvdDR0h0BzaG+CQ0bV55/Gi/A7JlKlVGEehN6A18TV0o8ieG2mS hoAQ== X-Gm-Message-State: ANhLgQ1oxVBbV4ajhmfqB8DwThG9wPqLSEZItToC2suNQJfBH8bd+UOG H/BY5bY6EBJpnfIpxBLxEaQ= X-Received: by 2002:a17:90a:d593:: with SMTP id v19mr200036pju.177.1583954365043; Wed, 11 Mar 2020 12:19:25 -0700 (PDT) Received: from localhost.localdomain ([103.46.201.94]) by smtp.gmail.com with ESMTPSA id z17sm3792673pff.12.2020.03.11.12.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 12:19:24 -0700 (PDT) From: Aman Sharma Cc: amanharitsh123@gmail.com, Thomas Petazzoni , Lorenzo Pieralisi , Andrew Murray , Bjorn Helgaas , Linus Walleij , Ryder Lee , Karthikeyan Mitran , Hou Zhiqiang , Marc Gonzalez , Mans Rullgard , Matthias Brugger , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/5] pci: added check for return value of platform_get_irq Date: Thu, 12 Mar 2020 00:49:03 +0530 Message-Id: <53b57606d7bc2615a43b1d5159200dba0435af6d.1583952276.git.amanharitsh123@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Aman Sharma --- drivers/pci/controller/pci-aardvark.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index 2a20b649f40c..40a4257f0df1 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -973,6 +973,9 @@ static int advk_pcie_probe(struct platform_device *pdev) return PTR_ERR(pcie->base); irq = platform_get_irq(pdev, 0); + if (irq < 0) + return irq; + ret = devm_request_irq(dev, irq, advk_pcie_irq_handler, IRQF_SHARED | IRQF_NO_THREAD, "advk-pcie", pcie); -- 2.20.1