Przeglądaj źródła

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>
Wei Yongjun 9 lat temu
rodzic
commit
6b83687987
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

+ 1 - 0
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;
 	}