Skip to contentSkip to conversation

net: ethernet: altera: TSE: fix error return code in altera_tse_probe()

PATCH Applied Sun Ke 2 participants 2 messages Sep 20, 2022 – Sep 22, 2022

Subsystems (4)
lore
Share & tools
lore

Sun Ke

author
#0 lore raw

PATCH v3 1/1 net: ethernet: altera: TSE: fix error return code in altera_tse_probe()

Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function.

Fixes fef2998203e1 ("net: altera: tse: convert to phylink")
---
 drivers/net/ethernet/altera/altera_tse_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/altera/altera_tse_main.c +1 -0
index 89ae6d1623aa..3cf409bdb283 100644
@@ -1411,6 +1411,7 @@ static int altera_tse_probe(struct platform_device *pdev)
 				       priv->phy_iface, &alt_tse_phylink_ops);
 	if (IS_ERR(priv->phylink)) {
 		dev_err(&pdev->dev, "failed to create phylink\n");
+		ret = PTR_ERR(priv->phylink);
 		goto err_init_phy;
 	}
 
Signature · 1 line
2.31.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Paolo Abeni <[email protected]>:

Quoted 8 lines · On Tue, 20 Sep 2022 10:00:41 +0800 you wrote:

Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function.

Fixes fef2998203e1 ("net: altera: tse: convert to phylink")

[...]

Here is the summary with links:
- [v3] net: ethernet: altera: TSE: fix error return code in altera_tse_probe()

    https://git.kernel.org/netdev/net-next/c/9b17dbd97de7

You are awesome, thank you!

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