cxgb3: fix hot plug removal crash
authorDivy Le Ray <divy@chelsio.com>
Wed, 3 Mar 2010 09:49:47 +0000 (09:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2010 08:53:54 +0000 (00:53 -0800)
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>
drivers/net/cxgb3/cxgb3_main.c

index 6fd968a..cecdec1 100644 (file)
@@ -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 */
 }