Skip to content

Commit

Permalink
cxgb3: fix hot plug removal crash
Browse files Browse the repository at this point in the history
queue restart tasklets need to be stopped after napi handlers are stopped
since the latter can restart them.  So stop them after stopping napi.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Divy Le Ray authored and David S. Miller committed Mar 4, 2010
1 parent 0eddba5 commit a6f018e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/cxgb3/cxgb3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ static void cxgb_down(struct adapter *adapter)

free_irq_resources(adapter);
quiesce_rx(adapter);
t3_sge_stop(adapter);
flush_workqueue(cxgb3_wq); /* wait for external IRQ handler */
}

Expand Down

0 comments on commit a6f018e

Please sign in to comment.