net: mv643xx_eth: disable napi when init rxq or txq failed in mv643xx_eth_open()
Subsystems (3)
PATCH v2 1/1 net: mv643xx_eth: disable napi when init rxq or txq failed in mv643xx_eth_open()
When failed to init rxq or txq in mv643xx_eth_open() for opening device, napi isn't disabled. When open mv643xx_eth device next time, it will trigger a BUG_ON() in napi_enable(). Compile tested only.
---
v2: modify the description and fixes tag
--- drivers/net/ethernet/marvell/mv643xx_eth.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/marvell/mv643xx_eth.c +1 -0
@@ -2481,6 +2481,7 @@ static int mv643xx_eth_open(struct net_device *dev)for (i =0 ; i < mp->rxq_count; i++)rxq_deinit (mp->rxq + i); out: +napi_disable (&mp->napi);free_irq (dev->irq, dev);return err;
Signature · 1 line
2.17.1
This patch was applied to netdev/net.git (master) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by Paolo Abeni <[email protected]>:
Quoted 8 lines · On Wed, 9 Nov 2022 10:54:32 +0800 you wrote:
When failed to init rxq or txq in
mv643xx_eth_open()for opening device, napi isn't disabled. When openmv643xx_ethdevice next time, it will trigger aBUG_ON()innapi_enable(). Compile tested only.Fixes 2257e05c1705 ("mv643xx_eth: get rid of receive-side locking")Signed-off-by Zhengchao Shao <[email protected]>[...]
Here is the summary with links:
- [net,v2] net: mv643xx_eth: disable napi when init rxq or txq failed in mv643xx_eth_open()
https://git.kernel.org/netdev/net/c/f111606b63ff
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html