aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-05-08 15:11:32 -0700
committerStephen Hemminger <shemminger@osdl.org>2006-05-08 16:00:27 -0700
commit72cb8529208020484cecd69bbf87719b50ee6313 (patch)
tree4baf2e535aab8df965d0bff818c63e7501cb7ff3 /drivers
parente71ebd73276cc21efc74aba4118ef037cd32e50a (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sky2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index ea23da53677..9b16c2a899e 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -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)