Files
linux/drivers/net/ethernet/intel/iavf
Yuan Can 971c55f076 iavf: Fix error handling in iavf_init_module()
[ Upstream commit 227d8d2f7f ]

The iavf_init_module() won't destroy workqueue when pci_register_driver()
failed. Call destroy_workqueue() when pci_register_driver() failed to
prevent the resource leak.

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

Fixes: 2803b16c10 ("i40e/i40evf: Use private workqueue")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-08 11:23:55 +01:00
..
2022-08-25 11:38:04 +02:00
2022-09-28 11:10:32 +02:00
2022-08-21 15:15:51 +02:00