Files
linux/drivers/net/ethernet/sfc
Christophe JAILLET 185096e8f9 sfc: Fix an error handling path in efx_pci_probe()
[ Upstream commit 6c412da54c ]

If an error occurs after the first kzalloc() the corresponding memory
allocation is never freed.

Add the missing kfree() in the error handling path, as already done in the
remove() function.

Fixes: 7e773594da ("sfc: Separate efx_nic memory from net_device memory")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Link: https://lore.kernel.org/r/dc114193121c52c8fa3779e49bdd99d4b41344a9.1667077009.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-10 18:17:18 +01:00
..
2020-07-27 12:26:55 -07:00
2020-07-27 12:26:55 -07:00
2021-04-14 13:55:07 -07:00
2020-07-27 12:26:55 -07:00
2020-07-27 12:26:55 -07:00
2020-09-11 17:15:22 -07:00
2020-09-11 17:15:22 -07:00
2022-07-19 13:37:04 -07:00
2022-05-04 11:18:08 +01:00
2022-07-27 18:20:43 -07:00
2020-09-11 17:15:22 -07:00