]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:49 +0000 (21:47 -0800)
Orabug: 24568240

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>
(cherry picked from commit 6b8368798772a4fabfec690be3b5f390c4bda600)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index 1e8e6d83f20f09110557588c53a1169a6203d9e7..4bb287f500f7bd0909d9a17b8c30a876c1546126 100644 (file)
@@ -9693,6 +9693,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;
        }