net: mv643xx_eth: undo some opreations in mv643xx_eth_probe
Subsystems (3)
PATCH v2 1/1 net: mv643xx_eth: undo some opreations in mv643xx_eth_probe
From: Minghao Chi <[email protected]>
Cannot directly return platform_get_irq return irq, there are operations that need to be undone.
---v1->v2:
- Use goto out;
drivers/net/ethernet/marvell/mv643xx_eth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/ethernet/marvell/mv643xx_eth.c +4 -2
@@ -3189,8 +3189,10 @@ static int mv643xx_eth_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 ); -if (WARN_ON (irq <0 )) -return irq; +if (WARN_ON (irq <0 )) { + err = irq; + goto out; + } dev->irq = irq; dev->netdev_ops = &mv643xx_eth_netdev_ops;
Signature · 1 line
2.25.1
Quoted 7 lines · On Wed, Mar 16, 2022 at 01:24:44AM +0000, [email protected] wrote:
From: Minghao Chi <[email protected]>
Cannot directly return
platform_get_irqreturn irq, there are operations that need to be undone.Reported-by Zeal Robot <[email protected]>Signed-off-by Minghao Chi <[email protected]>
Andrew
Jakub Kicinski
maintainerQuoted 6 lines · On Wed, 16 Mar 2022 01:24:44 +0000 [email protected] wrote:
From: Minghao Chi <[email protected]>
Cannot directly return
platform_get_irqreturn irq, there are operations that need to be undone.Reported-by Zeal Robot <[email protected]>
Pretty sure I reported this :/ Fixes tag would be nice as well. Let me fix those two issues and apply.
Inhale, exhale.
Quoted 1 line
Signed-off-by Minghao Chi <[email protected]>
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 16 Mar 2022 01:24:44 +0000 you wrote:
From: Minghao Chi <[email protected]>
Cannot directly return
platform_get_irqreturn irq, there are operations that need to be undone.Reported-by Zeal Robot <[email protected]>Signed-off-by Minghao Chi <[email protected]>[...]
Here is the summary with links:
- [V2] net: mv643xx_eth: undo some opreations in mv643xx_eth_probe
https://git.kernel.org/netdev/net-next/c/571703ff387c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html