1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel/ixgbevf
Shang XiaoJing 8cfa238a48 ixgbevf: Fix resource leak in ixgbevf_init_module()
ixgbevf_init_module() won't destroy the workqueue created by
create_singlethread_workqueue() when pci_register_driver() failed. Add
destroy_workqueue() in fail path to prevent the resource leak.

Similar to the handling of u132_hcd_init in commit f276e00279
("usb: u132-hcd: fix resource leak")

Fixes: 40a13e2493 ("ixgbevf: Use a private workqueue to avoid certain possible hangs")
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Reviewed-by: Saeed Mahameed <saeed@kernel.org>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2022-11-23 08:36:54 -08:00
..
defines.h ixgbevf: Mailbox improvements 2021-11-17 08:07:42 -08:00
ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
ipsec.c ixgbe: propagate XFRM offload state direction instead of flags 2022-05-06 08:32:52 +02:00
ipsec.h ixgbe: propagate XFRM offload state direction instead of flags 2022-05-06 08:32:52 +02:00
ixgbevf.h ixgbevf: add disable link state 2022-03-08 07:41:18 -08:00
ixgbevf_main.c ixgbevf: Fix resource leak in ixgbevf_init_module() 2022-11-23 08:36:54 -08:00
Makefile ixgbe/ixgbevf: fix XFRM_ALGO dependency 2018-10-31 10:53:15 -07:00
mbx.c ixgbevf: Mailbox improvements 2021-11-17 08:07:42 -08:00
mbx.h ixgbevf: add disable link state 2022-03-08 07:41:18 -08:00
regs.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
vf.c intel/ixgbevf:fix repeated words in comments 2022-06-30 11:08:45 -07:00
vf.h ixgbevf: add disable link state 2022-03-08 07:41:18 -08:00