net: dsa: qca8k: check correct variable in qca8k_phy_eth_command()
Subsystems (4)
PATCH 1/1 net: dsa: qca8k: check correct variable in qca8k_phy_eth_command()
This is a copy and paste bug. It was supposed to check "clear_skb" instead of "write_skb".
Fixes 2cd548566384 ("net: dsa: qca8k: add support for phy read/write with mgmt Ethernet")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/net/dsa/qca8k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/qca8k.c +1 -1
@@ -1018,7 +1018,7 @@ qca8k_phy_eth_command(struct qca8k_priv *priv, bool read, int phy, clear_skb =qca8k_alloc_mdio_header (MDIO_WRITE ,QCA8K_MDIO_MASTER_CTRL , &clear_val,QCA8K_ETHERNET_PHY_PRIORITY ,sizeof (clear_val)); -if (!write_skb) { +if (!clear_skb) { ret = -ENOMEM ; goto err_clear_skb; }
Signature · 1 line
2.20.1
Quoted 5 lines · Dan Carpenter
This is a copy and paste bug. It was supposed to check "
clear_skb" instead of "write_skb".Fixes 2cd548566384 ("net: dsa: qca8k: add support for phy read/write with mgmt Ethernet")Signed-off-by Dan Carpenter <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Signature · 1 line
Florian
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 8 lines · On Fri, 4 Feb 2022 13:03:36 +0300 you wrote:
This is a copy and paste bug. It was supposed to check "
clear_skb" instead of "write_skb".Fixes 2cd548566384 ("net: dsa: qca8k: add support for phy read/write with mgmt Ethernet")Signed-off-by Dan Carpenter <[email protected]>--- drivers/net/dsa/qca8k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] net: dsa: qca8k: check correct variable in qca8k_phy_eth_command()
https://git.kernel.org/netdev/net-next/c/c3664d913dc1
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html