mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
net: nixge: disable napi when enable interrupts failed in nixge_open()
[ Upstream commitb06334919c] When failed to enable interrupts in nixge_open() for opening device, napi isn't disabled. When open nixge device next time, it will reports a invalid opcode issue. Fix it. Only be compiled, not be tested. Fixes:492caffa8a("net: ethernet: nixge: Add support for National Instruments XGE netdev") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Link: https://lore.kernel.org/r/20221107101443.120205-1-shaozhengchao@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5333cf1b7f
commit
bdd282bba7
|
|
@ -899,6 +899,7 @@ static int nixge_open(struct net_device *ndev)
|
||||||
err_rx_irq:
|
err_rx_irq:
|
||||||
free_irq(priv->tx_irq, ndev);
|
free_irq(priv->tx_irq, ndev);
|
||||||
err_tx_irq:
|
err_tx_irq:
|
||||||
|
napi_disable(&priv->napi);
|
||||||
phy_stop(phy);
|
phy_stop(phy);
|
||||||
phy_disconnect(phy);
|
phy_disconnect(phy);
|
||||||
tasklet_kill(&priv->dma_err_tasklet);
|
tasklet_kill(&priv->dma_err_tasklet);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user