Skip to content

Commit

Permalink
sky2: synchronize irq on remove
Browse files Browse the repository at this point in the history
Need to make sure interrupt is not racing with unregister of
network device.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
  • Loading branch information
Stephen Hemminger committed May 8, 2006
1 parent e71ebd7 commit 72cb852
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 72cb852

Please sign in to comment.