diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-07-08 15:51:47 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-07-11 01:20:28 -0400 |
commit | 1257969724e7d5f878ac05067388ac5c012eb29b (patch) | |
tree | abbf73f41400e17e80c168db97337de399ae4c65 /drivers/net/ixgb | |
parent | b5ca88eb335580dc48ef5ebb3b86719bdb5a4113 (diff) | |
download | kernel_samsung_crespo-1257969724e7d5f878ac05067388ac5c012eb29b.zip kernel_samsung_crespo-1257969724e7d5f878ac05067388ac5c012eb29b.tar.gz kernel_samsung_crespo-1257969724e7d5f878ac05067388ac5c012eb29b.tar.bz2 |
ixgb: fix unload race with timers
ixgb needs to call flush scheduled work to flush any timers before
unregistering the netdev.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index c3234c4..79082eb 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c @@ -528,6 +528,8 @@ ixgb_remove(struct pci_dev *pdev) struct net_device *netdev = pci_get_drvdata(pdev); struct ixgb_adapter *adapter = netdev_priv(netdev); + flush_scheduled_work(); + unregister_netdev(netdev); iounmap(adapter->hw.hw_addr); |