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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Родитель
8e8247ab98
Коммит
6b83687987
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче