All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aman Sharma <amanharitsh123@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: amanharitsh123@gmail.com,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Andrew Murray <amurray@thegoodpenguin.co.uk>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Ryder Lee <ryder.lee@mediatek.com>,
	Karthikeyan Mitran <m.karthikeyan@mobiveil.co.in>,
	Hou Zhiqiang <Zhiqiang.Hou@nxp.com>,
	Marc Gonzalez <marc.w.gonzalez@free.fr>,
	Mans Rullgard <mans@mansr.com>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org
Subject: [PATCH 5/5] pci: added check for return value of platform_get_irq
Date: Thu, 12 Mar 2020 00:49:06 +0530	[thread overview]
Message-ID: <a36999aa5c567c65ddfaf0b54406e8583343a510.1583952276.git.amanharitsh123@gmail.com> (raw)
In-Reply-To: <cover.1583952275.git.amanharitsh123@gmail.com>

Signed-off-by: Aman Sharma <amanharitsh123@gmail.com>
---
 drivers/pci/controller/pcie-mediatek.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c
index cb982891b22b..ebfa7d5a4e2d 100644
--- a/drivers/pci/controller/pcie-mediatek.c
+++ b/drivers/pci/controller/pcie-mediatek.c
@@ -651,6 +651,9 @@ static int mtk_pcie_setup_irq(struct mtk_pcie_port *port,
 	}
 
 	port->irq = platform_get_irq(pdev, port->slot);
+	if (port->irq < 0)
+		return port->irq;
+
 	irq_set_chained_handler_and_data(port->irq,
 					 mtk_pcie_intr_handler, port);
 
-- 
2.20.1


WARNING: multiple messages have this Message-ID (diff)
From: Aman Sharma <amanharitsh123@gmail.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Karthikeyan Mitran <m.karthikeyan@mobiveil.co.in>,
	Marc Gonzalez <marc.w.gonzalez@free.fr>,
	linux-pci@vger.kernel.org,
	Linus Walleij <linus.walleij@linaro.org>,
	amanharitsh123@gmail.com, linux-kernel@vger.kernel.org,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Ryder Lee <ryder.lee@mediatek.com>,
	linux-mediatek@lists.infradead.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Mans Rullgard <mans@mansr.com>,
	Hou Zhiqiang <Zhiqiang.Hou@nxp.com>,
	linux-arm-kernel@lists.infradead.org,
	Andrew Murray <amurray@thegoodpenguin.co.uk>
Subject: [PATCH 5/5] pci: added check for return value of platform_get_irq
Date: Thu, 12 Mar 2020 00:49:06 +0530	[thread overview]
Message-ID: <a36999aa5c567c65ddfaf0b54406e8583343a510.1583952276.git.amanharitsh123@gmail.com> (raw)
In-Reply-To: <cover.1583952275.git.amanharitsh123@gmail.com>

Signed-off-by: Aman Sharma <amanharitsh123@gmail.com>
---
 drivers/pci/controller/pcie-mediatek.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c
index cb982891b22b..ebfa7d5a4e2d 100644
--- a/drivers/pci/controller/pcie-mediatek.c
+++ b/drivers/pci/controller/pcie-mediatek.c
@@ -651,6 +651,9 @@ static int mtk_pcie_setup_irq(struct mtk_pcie_port *port,
 	}
 
 	port->irq = platform_get_irq(pdev, port->slot);
+	if (port->irq < 0)
+		return port->irq;
+
 	irq_set_chained_handler_and_data(port->irq,
 					 mtk_pcie_intr_handler, port);
 
-- 
2.20.1


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

WARNING: multiple messages have this Message-ID (diff)
From: Aman Sharma <amanharitsh123@gmail.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Karthikeyan Mitran <m.karthikeyan@mobiveil.co.in>,
	Marc Gonzalez <marc.w.gonzalez@free.fr>,
	linux-pci@vger.kernel.org,
	Linus Walleij <linus.walleij@linaro.org>,
	amanharitsh123@gmail.com, linux-kernel@vger.kernel.org,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Ryder Lee <ryder.lee@mediatek.com>,
	linux-mediatek@lists.infradead.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Mans Rullgard <mans@mansr.com>,
	Hou Zhiqiang <Zhiqiang.Hou@nxp.com>,
	linux-arm-kernel@lists.infradead.org,
	Andrew Murray <amurray@thegoodpenguin.co.uk>
Subject: [PATCH 5/5] pci: added check for return value of platform_get_irq
Date: Thu, 12 Mar 2020 00:49:06 +0530	[thread overview]
Message-ID: <a36999aa5c567c65ddfaf0b54406e8583343a510.1583952276.git.amanharitsh123@gmail.com> (raw)
In-Reply-To: <cover.1583952275.git.amanharitsh123@gmail.com>

Signed-off-by: Aman Sharma <amanharitsh123@gmail.com>
---
 drivers/pci/controller/pcie-mediatek.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c
index cb982891b22b..ebfa7d5a4e2d 100644
--- a/drivers/pci/controller/pcie-mediatek.c
+++ b/drivers/pci/controller/pcie-mediatek.c
@@ -651,6 +651,9 @@ static int mtk_pcie_setup_irq(struct mtk_pcie_port *port,
 	}
 
 	port->irq = platform_get_irq(pdev, port->slot);
+	if (port->irq < 0)
+		return port->irq;
+
 	irq_set_chained_handler_and_data(port->irq,
 					 mtk_pcie_intr_handler, port);
 
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-03-11 19:19 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-11 19:19 [PATCH 0/5] Handled return value of platform_get_irq correctly Aman Sharma
2020-03-11 19:19 ` Aman Sharma
2020-03-11 19:19 ` Aman Sharma
2020-03-11 19:19 ` [PATCH 1/5] pci: handled " Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-11 20:57   ` Bjorn Helgaas
2020-04-06 21:28     ` Bjorn Helgaas
2020-03-12 14:07   ` Linus Walleij
2020-03-12 14:07     ` Linus Walleij
2020-03-12 14:07     ` Linus Walleij
2020-03-12 19:02     ` Bjorn Helgaas
2020-03-12 19:02       ` Bjorn Helgaas
2020-03-12 19:02       ` Bjorn Helgaas
2020-03-12 22:45       ` Linus Walleij
2020-03-12 22:45         ` Linus Walleij
2020-03-12 22:45         ` Linus Walleij
2020-03-11 19:19 ` [PATCH 2/5] pci: added check for return value of platform_get_irq Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-11 19:19 ` [PATCH 3/5] pci: handled return value of platform_get_irq correctly Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-11 19:19 ` [PATCH 4/5] " Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-11 19:19   ` Aman Sharma
2020-03-12  9:53   ` Marc Gonzalez
2020-03-12  9:53     ` Marc Gonzalez
2020-03-12  9:53     ` Marc Gonzalez
2020-03-12 14:11     ` Bjorn Helgaas
2020-03-12 14:11       ` Bjorn Helgaas
2020-03-12 14:11       ` Bjorn Helgaas
2020-03-12 15:53       ` Marc Gonzalez
2020-03-12 15:53         ` Marc Gonzalez
2020-03-12 15:53         ` Marc Gonzalez
2020-03-13 21:05       ` Thomas Gleixner
2020-03-13 21:05         ` Thomas Gleixner
2020-03-13 21:05         ` Thomas Gleixner
2020-03-13 21:56         ` Bjorn Helgaas
2020-03-13 21:56           ` Bjorn Helgaas
2020-03-13 21:56           ` Bjorn Helgaas
2020-03-17 22:03           ` Bjorn Helgaas
2020-03-17 22:03             ` Bjorn Helgaas
2020-03-17 22:03             ` Bjorn Helgaas
2020-03-18 13:42             ` Thomas Gleixner
2020-03-18 13:42               ` Thomas Gleixner
2020-03-18 13:42               ` Thomas Gleixner
2020-03-18 22:22               ` Bjorn Helgaas
2020-03-18 22:22                 ` Bjorn Helgaas
2020-03-18 22:22                 ` Bjorn Helgaas
2020-03-19  8:47                 ` Thomas Gleixner
2020-03-19  8:47                   ` Thomas Gleixner
2020-03-19  8:47                   ` Thomas Gleixner
2020-03-19 21:35                   ` Bjorn Helgaas
2020-03-19 21:35                     ` Bjorn Helgaas
2020-03-19 21:35                     ` Bjorn Helgaas
2020-03-11 19:19 ` Aman Sharma [this message]
2020-03-11 19:19   ` [PATCH 5/5] pci: added check for return value of platform_get_irq Aman Sharma
2020-03-11 19:19   ` Aman Sharma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a36999aa5c567c65ddfaf0b54406e8583343a510.1583952276.git.amanharitsh123@gmail.com \
    --to=amanharitsh123@gmail.com \
    --cc=Zhiqiang.Hou@nxp.com \
    --cc=amurray@thegoodpenguin.co.uk \
    --cc=bhelgaas@google.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=m.karthikeyan@mobiveil.co.in \
    --cc=mans@mansr.com \
    --cc=marc.w.gonzalez@free.fr \
    --cc=matthias.bgg@gmail.com \
    --cc=ryder.lee@mediatek.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.