net: nixge: disable napi when enable interrupts failed in nixge_open()
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 7 Nov 2022 10:14:43 +0000 (18:14 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Nov 2022 01:44:02 +0000 (17:44 -0800)
commitb06334919c7a068d54ba5b219c05e919d89943f7
tree16379c9d1972f9da74277c3ebc6380549d398f58
parent07d120aa33cc9d9115753d159f64d20c94458781
net: nixge: disable napi when enable interrupts failed in nixge_open()

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: 492caffa8a1a ("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>
drivers/net/ethernet/ni/nixge.c