WSL2-Linux-Kernel/drivers/net/ethernet/sun
Christophe JAILLET 234e744d86 cassini: Fix a memory leak in the error handling path of cas_init_one()
[ Upstream commit 412cd77a2c ]

cas_saturn_firmware_init() allocates some memory using vmalloc(). This
memory is freed in the .remove() function but not it the error handling
path of the probe.

Add the missing vfree() to avoid a memory leak, should an error occur.

Fixes: fcaa40669c ("cassini: use request_firmware")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:36:52 +01:00
..
Kconfig
Makefile
cassini.c cassini: Fix a memory leak in the error handling path of cas_init_one() 2023-05-24 17:36:52 +01:00
cassini.h
ldmvsw.c ethernet: sun: add check for the mdesc_grab() 2023-03-22 13:31:28 +01:00
niu.c niu: Fix missing unwind goto in niu_alloc_channels() 2023-04-20 12:13:53 +02:00
niu.h
sunbmac.c
sunbmac.h
sungem.c
sungem.h
sunhme.c
sunhme.h
sunqe.c
sunqe.h
sunvnet.c ethernet: sun: add check for the mdesc_grab() 2023-03-22 13:31:28 +01:00
sunvnet_common.c
sunvnet_common.h