Commit 3bfafd6b authored by Dhananjay Phadke's avatar Dhananjay Phadke Committed by David S. Miller

netxen: avoid invalid iounmap

For NX3031 only one I/O range is mapped, so unmapping other
two which are used by older chips, causes this warning on
ppc64.

"Attempt to iounmap early bolted mapping at 0x0000000000000000"
Signed-off-by: default avatarDhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a58c891a
...@@ -1004,7 +1004,9 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev) ...@@ -1004,7 +1004,9 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)
iounmap(adapter->ahw.db_base); iounmap(adapter->ahw.db_base);
iounmap(adapter->ahw.pci_base0); iounmap(adapter->ahw.pci_base0);
if (adapter->ahw.pci_base1 != NULL)
iounmap(adapter->ahw.pci_base1); iounmap(adapter->ahw.pci_base1);
if (adapter->ahw.pci_base2 != NULL)
iounmap(adapter->ahw.pci_base2); iounmap(adapter->ahw.pci_base2);
pci_release_regions(pdev); pci_release_regions(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment