Skip to content

Commit d75aed1

Browse files
zhengchaoshaokuba-moo
authored andcommitted
net: cxgb3_main: disable napi when bind qsets failed in cxgb_up()
When failed to bind qsets in cxgb_up() for opening device, napi isn't disabled. When open cxgb3 device next time, it will trigger a BUG_ON() in napi_enable(). Compile tested only. Fixes: 48c4b6d ("cxgb3 - fix port up/down error path") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Link: https://lore.kernel.org/r/20221109021451.121490-1-shaozhengchao@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 6d47b53 commit d75aed1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,7 @@ static int cxgb_up(struct adapter *adap)
13011301
if (ret < 0) {
13021302
CH_ERR(adap, "failed to bind qsets, err %d\n", ret);
13031303
t3_intr_disable(adap);
1304+
quiesce_rx(adap);
13041305
free_irq_resources(adap);
13051306
err = ret;
13061307
goto out;

0 commit comments

Comments
 (0)