aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 139a70405582..43ab35fea48d 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -6163,13 +6163,13 @@ static void remove_one(struct pci_dev *pdev)
6163 iounmap(adapter->regs); 6163 iounmap(adapter->regs);
6164 if (!is_t4(adapter->params.chip)) 6164 if (!is_t4(adapter->params.chip))
6165 iounmap(adapter->bar2); 6165 iounmap(adapter->bar2);
6166 kfree(adapter);
6167 pci_disable_pcie_error_reporting(pdev); 6166 pci_disable_pcie_error_reporting(pdev);
6168 if ((adapter->flags & DEV_ENABLED)) { 6167 if ((adapter->flags & DEV_ENABLED)) {
6169 pci_disable_device(pdev); 6168 pci_disable_device(pdev);
6170 adapter->flags &= ~DEV_ENABLED; 6169 adapter->flags &= ~DEV_ENABLED;
6171 } 6170 }
6172 pci_release_regions(pdev); 6171 pci_release_regions(pdev);
6172 kfree(adapter);
6173 } else 6173 } else
6174 pci_release_regions(pdev); 6174 pci_release_regions(pdev);
6175} 6175}