net: ethernet: altera: TSE: fix error return code in altera_tse_probe()
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")
Reported-by kernel test robot <[email protected]>
Signed-off-by Sun Ke <[email protected]>
--- drivers/net/ethernet/altera/altera_tse_main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/altera/altera_tse_main.c +1 -0
@@ -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
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")Reported-by kernel test robot <[email protected]>Signed-off-by Sun Ke <[email protected]>[...]
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