1
0
Fork 0

sky2: synchronize irq on remove

Need to make sure interrupt is not racing with unregister of
network device.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
wifi-calibration
Stephen Hemminger 2006-05-08 15:11:32 -07:00
parent e71ebd7327
commit 72cb852920
1 changed files with 2 additions and 0 deletions

View File

@ -3327,6 +3327,8 @@ static void __devexit sky2_remove(struct pci_dev *pdev)
del_timer_sync(&hw->idle_timer);
sky2_write32(hw, B0_IMSK, 0);
synchronize_irq(hw->pdev->irq);
dev0 = hw->dev[0];
dev1 = hw->dev[1];
if (dev1)