Skip to contentSkip to conversation

net: mv643xx_eth: undo some opreations in mv643xx_eth_probe

PATCH Applied [email protected] 4 participants 4 messages Mar 16, 2022 – Mar 17, 2022

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

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
index e6cd4e214d79..5f9ab1842d49 100644
@@ -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
maintainer
#2 lore raw
In reply to [email protected]
Quoted 6 lines · On Wed, 16 Mar 2022 01:24:44 +0000 [email protected] wrote:

From: Minghao Chi <[email protected]>

Cannot directly return platform_get_irq return irq, there are operations that need to be undone.

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
#3 lore raw
In reply to [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_irq return irq, there are operations that need to be undone.

[...]

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