Skip to contentSkip to conversation

net: ag71xx: check error for platform_get_irq

PATCH Applied Rosen Penev 3 participants 3 messages May 16 – May 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: ag71xx: check error for platform_get_irq

Complete error handling for a failed platform_get_irq() call

Fixes d51b6ce441d3 ("net: ethernet: add ag71xx driver")

---
v2: adjust description

 drivers/net/ethernet/atheros/ag71xx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/atheros/ag71xx.c +3 -0
index a5ab99474179..4e4794c4dfdc 100644
@@ -1856,6 +1856,9 @@ static int ag71xx_probe(struct platform_device *pdev)
 	ag71xx_int_disable(ag, AG71XX_INT_POLL);
 
 	ndev->irq = platform_get_irq(pdev, 0);
+	if (ndev->irq < 0)
+		return ndev->irq;
+
 	err = devm_request_irq(&pdev->dev, ndev->irq, ag71xx_interrupt,
 			       0x0, dev_name(&pdev->dev), ndev);
 	if (err) {
Signature · 1 line
2.54.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Rosen Penev

Complete error handling for a failed platform_get_irq() call

Fixes d51b6ce441d3 ("net: ethernet: add ag71xx driver")

LGTM,

Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#2 lore raw
In reply to Rosen Penev
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Sat, 16 May 2026 14:26:16 -0700 you wrote:

Complete error handling for a failed platform_get_irq() call

Fixes d51b6ce441d3 ("net: ethernet: add ag71xx driver")

---
v2: adjust description

 drivers/net/ethernet/atheros/ag71xx.c | 3 +++
 1 file changed, 3 insertions(+)

Here is the summary with links:
- [PATCHv2,net] net: ag71xx: check error for platform_get_irq

    https://git.kernel.org/netdev/net/c/e7c70bf97e90

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html