aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/netxen/netxen_nic_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 86867405a367..f8e26290a22f 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -1004,8 +1004,10 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)
1004 1004
1005 iounmap(adapter->ahw.db_base); 1005 iounmap(adapter->ahw.db_base);
1006 iounmap(adapter->ahw.pci_base0); 1006 iounmap(adapter->ahw.pci_base0);
1007 iounmap(adapter->ahw.pci_base1); 1007 if (adapter->ahw.pci_base1 != NULL)
1008 iounmap(adapter->ahw.pci_base2); 1008 iounmap(adapter->ahw.pci_base1);
1009 if (adapter->ahw.pci_base2 != NULL)
1010 iounmap(adapter->ahw.pci_base2);
1009 1011
1010 pci_release_regions(pdev); 1012 pci_release_regions(pdev);
1011 pci_disable_device(pdev); 1013 pci_disable_device(pdev);