diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-12 17:17:02 +0200 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-07-22 10:38:57 +0200 |
commit | 6b8368798772a4fabfec690be3b5f390c4bda600 (patch) | |
tree | 450a800f0488b11cd14bb7d3d7f72100612c9f46 | |
parent | ixgbevf: Add lock around ixgbevf_reinit_locked call (diff) | |
download | linux-6b8368798772a4fabfec690be3b5f390c4bda600.tar.xz linux-6b8368798772a4fabfec690be3b5f390c4bda600.zip |
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>
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index f2837ea0a0a5..b0039c0280af 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -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; } |