Browse Source

netxen: fix msi irq setup

The pdev->irq was not saved in netxen_adapter, causing request_irq()
with invalid irq number.

This was broken in commit be339aee634d5cb98a8df8d6febe04002ec497f3
("netxen: fix irq tear down and msix leak.").

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Dhananjay Phadke 16 years ago
parent
commit
f67f340849
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/netxen/netxen_nic_main.c

+ 1 - 0
drivers/net/netxen/netxen_nic_main.c

@@ -539,6 +539,7 @@ netxen_setup_intr(struct netxen_adapter *adapter)
 		adapter->msi_tgt_status =
 			msi_tgt_status[adapter->ahw.pci_func];
 		dev_info(&pdev->dev, "using msi interrupts\n");
+		adapter->msix_entries[0].vector = pdev->irq;
 		return;
 	}