提交 6b836879 编写于 作者: W Wei Yongjun 提交者: Jeff Kirsher

ixgbe: Add missing destroy_workqueue() on error in ixgbe_init_module()

Add the missing destroy_workqueue() before return from
ixgbe_init_module() in the error handling case.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 8e8247ab
...@@ -10112,6 +10112,7 @@ static int __init ixgbe_init_module(void) ...@@ -10112,6 +10112,7 @@ static int __init ixgbe_init_module(void)
ret = pci_register_driver(&ixgbe_driver); ret = pci_register_driver(&ixgbe_driver);
if (ret) { if (ret) {
destroy_workqueue(ixgbe_wq);
ixgbe_dbg_exit(); ixgbe_dbg_exit();
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册