]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
sky2: synchronize irq on remove
authorStephen Hemminger <shemminger@osdl.org>
Mon, 8 May 2006 22:11:32 +0000 (15:11 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Mon, 8 May 2006 23:00:27 +0000 (16:00 -0700)
Need to make sure interrupt is not racing with unregister of
network device.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
drivers/net/sky2.c

index ea23da53677b0c9740767a0324a7c8cdee859b0e..9b16c2a899e0f10088e29894bd46faaf9bcc2b3d 100644 (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)