]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: s2io: disable napi when start nic failed in s2io_card_up()
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 9 Nov 2022 02:37:41 +0000 (10:37 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Nov 2022 12:00:59 +0000 (13:00 +0100)
commit61d5277f97926efef734f7571c45b84e38ae70b4
treec6210a05f0de17f90cc5b38117584694b0c4d57e
parent754afecdf11f7233b2ef7dd46a7b565963302795
ethernet: s2io: disable napi when start nic failed in s2io_card_up()

When failed to start nic or add interrupt service routine in
s2io_card_up() for opening device, napi isn't disabled. When open
s2io device next time, it will trigger a BUG_ON()in napi_enable().
Compile tested only.

Fixes: e66a2ac4f99e ("S2io: Fixed synchronization between scheduling of napi with card reset and close")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221109023741.131552-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/neterion/s2io.c