提交 0f4a6828 编写于 作者: S Sathya Perla 提交者: 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: NSathya Perla <sathya.perla@emulex.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 16da8250
......@@ -3155,8 +3155,7 @@ static void be_shutdown(struct pci_dev *pdev)
struct be_adapter *adapter = pci_get_drvdata(pdev);
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册