Commit b1adf031 authored by Amit S. Kale's avatar Amit S. Kale Committed by Jeff Garzik

NetXen: Driver ifconfig fix

Signed-off-by: default avatarAmit S. Kale <amitkale@netxen.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 9de06610
...@@ -525,6 +525,8 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev) ...@@ -525,6 +525,8 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)
if (adapter == NULL) if (adapter == NULL)
return; return;
if (adapter->irq)
free_irq(adapter->irq, adapter);
netxen_nic_stop_all_ports(adapter); netxen_nic_stop_all_ports(adapter);
/* leave the hw in the same state as reboot */ /* leave the hw in the same state as reboot */
netxen_pinit_from_rom(adapter, 0); netxen_pinit_from_rom(adapter, 0);
...@@ -672,8 +674,6 @@ static int netxen_nic_close(struct net_device *netdev) ...@@ -672,8 +674,6 @@ static int netxen_nic_close(struct net_device *netdev)
if (!adapter->active_ports) { if (!adapter->active_ports) {
netxen_nic_disable_int(adapter); netxen_nic_disable_int(adapter);
if (adapter->irq)
free_irq(adapter->irq, adapter);
cmd_buff = adapter->cmd_buf_arr; cmd_buff = adapter->cmd_buf_arr;
for (i = 0; i < adapter->max_tx_desc_count; i++) { for (i = 0; i < adapter->max_tx_desc_count; i++) {
buffrag = cmd_buff->frag_array; buffrag = cmd_buff->frag_array;
......
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