aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_main.c')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 5447f3e60f07..d355c826b9b9 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -479,6 +479,7 @@ static int setup_sge_qsets(struct adapter *adap)
479 irq_idx, 479 irq_idx,
480 &adap->params.sge.qset[qset_idx], ntxq, dev); 480 &adap->params.sge.qset[qset_idx], ntxq, dev);
481 if (err) { 481 if (err) {
482 t3_stop_sge_timers(adap);
482 t3_free_sge_resources(adap); 483 t3_free_sge_resources(adap);
483 return err; 484 return err;
484 } 485 }
@@ -2449,6 +2450,9 @@ static pci_ers_result_t t3_io_error_detected(struct pci_dev *pdev,
2449 test_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map)) 2450 test_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map))
2450 offload_close(&adapter->tdev); 2451 offload_close(&adapter->tdev);
2451 2452
2453 /* Stop SGE timers */
2454 t3_stop_sge_timers(adapter);
2455
2452 adapter->flags &= ~FULL_INIT_DONE; 2456 adapter->flags &= ~FULL_INIT_DONE;
2453 2457
2454 pci_disable_device(pdev); 2458 pci_disable_device(pdev);
@@ -2801,6 +2805,7 @@ static void __devexit remove_one(struct pci_dev *pdev)
2801 if (test_bit(i, &adapter->registered_device_map)) 2805 if (test_bit(i, &adapter->registered_device_map))
2802 unregister_netdev(adapter->port[i]); 2806 unregister_netdev(adapter->port[i]);
2803 2807
2808 t3_stop_sge_timers(adapter);
2804 t3_free_sge_resources(adapter); 2809 t3_free_sge_resources(adapter);
2805 cxgb_disable_msi(adapter); 2810 cxgb_disable_msi(adapter);
2806 2811