net: ag71xx: check error for platform_get_irq
Subsystems (3)
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")
Signed-off-by Rosen Penev <[email protected]>
---
v2: adjust description
drivers/net/ethernet/atheros/ag71xx.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/ethernet/atheros/ag71xx.c +3 -0
@@ -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
Quoted 4 lines · Rosen Penev
Complete error handling for a failed
platform_get_irq()callFixes d51b6ce441d3 ("net: ethernet: add ag71xx driver")Signed-off-by Rosen Penev <[email protected]>
LGTM,
Reviewed-by Oleksij Rempel <[email protected]>
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 |
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()callFixes d51b6ce441d3 ("net: ethernet: add ag71xx driver")Signed-off-by Rosen Penev <[email protected]>---
v2: adjust descriptiondrivers/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