ixgbe: Add missing destroy_workqueue() on error in ixgbe_init_module()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 15:17:02 +0000 (15:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Jul 2016 08:38:57 +0000 (01:38 -0700)
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>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index f2837ea0a0a597bbf1dadb07bff09778a8f384d9..b0039c0280afc8c7c69e411f8fb680d9ac87f02f 100644 (file)
@@ -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;
        }