Skip to content

Commit

Permalink
ixgbe: Add missing destroy_workqueue() on error in ixgbe_init_module()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Jeff Kirsher committed Jul 22, 2016
1 parent 8e8247a commit 6b83687
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6b83687

Please sign in to comment.