]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: xgene: disable napi when register irq failed in xgene_enet_open()
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 7 Nov 2022 04:30:32 +0000 (12:30 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Nov 2022 14:15:55 +0000 (15:15 +0100)
commita974b7d103b11219aa14c060563903c6eb8f0816
tree565a6e18380cae9d9fb77dd3a3c3fada5d46c1ec
parent42a88e6e84788a90b6b286f343d23da445a83456
drivers: net: xgene: disable napi when register irq failed in xgene_enet_open()

When failed to register irq in xgene_enet_open() for opening device,
napi isn't disabled. When open xgene device next time, it will reports
a invalid opcode issue. Fix it. Only be compiled, not be tested.

Fixes: e496fcc32035 ("drivers: net: xgene: fix: ifconfig up/down crash")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221107043032.357673-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c