Commit 0f4a6828 authored by Sathya Perla's avatar Sathya Perla Committed by David S. Miller

be2net: cancel be_worker in be_shutdown() even when i/f is down

As the be_worker() workqueue is scheduled in be_probe() it must
be canceled unconditionally in be_shutdown().
Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 16da8250
...@@ -3155,7 +3155,6 @@ static void be_shutdown(struct pci_dev *pdev) ...@@ -3155,7 +3155,6 @@ static void be_shutdown(struct pci_dev *pdev)
struct be_adapter *adapter = pci_get_drvdata(pdev); struct be_adapter *adapter = pci_get_drvdata(pdev);
struct net_device *netdev = adapter->netdev; struct net_device *netdev = adapter->netdev;
if (netif_running(netdev))
cancel_delayed_work_sync(&adapter->work); cancel_delayed_work_sync(&adapter->work);
netif_device_detach(netdev); netif_device_detach(netdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment