Commit 6b836879 authored by Wei Yongjun's avatar Wei Yongjun Committed by 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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 8e8247ab
......@@ -10112,6 +10112,7 @@ static int __init ixgbe_init_module(void)
ret = pci_register_driver(&ixgbe_driver);
if (ret) {
destroy_workqueue(ixgbe_wq);
ixgbe_dbg_exit();
return ret;
}
......
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