aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/netdev.c
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2008-11-14 01:45:07 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-16 22:05:02 -0500
commite82f54ba030b429c06b5240cbe7eeaaa03a8db11 (patch)
treec1502656045e4aa37d2f6379484a4eaab1922eab /drivers/net/e1000e/netdev.c
parent3ee82383f0098a2e13acc8cf1be8e47512f41e5a (diff)
e1000e: fix warn_on reload after phy_id error
If the driver fails to initialize the first time due to the failure in the phy_id check the kernel triggers a warn_on on the second try to load the driver because the driver did not free the msi/x resources in the first load because of the previous failure in phy_id check. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r--drivers/net/e1000e/netdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 2c8dffdc889f..f6ebebb8cfa5 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -5009,6 +5009,7 @@ err_hw_init:
5009err_sw_init: 5009err_sw_init:
5010 if (adapter->hw.flash_address) 5010 if (adapter->hw.flash_address)
5011 iounmap(adapter->hw.flash_address); 5011 iounmap(adapter->hw.flash_address);
5012 e1000e_reset_interrupt_capability(adapter);
5012err_flashmap: 5013err_flashmap:
5013 iounmap(adapter->hw.hw_addr); 5014 iounmap(adapter->hw.hw_addr);
5014err_ioremap: 5015err_ioremap: