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:
Wei Yongjun 2016-07-12 15:17:02 +00:00 коммит произвёл Jeff Kirsher
Родитель 8e8247ab98
Коммит 6b83687987
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;
}