linux/drivers/net/ethernet/sun
Christophe JAILLET 412cd77a2c cassini: Fix a memory leak in the error handling path of cas_init_one()
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>
2023-05-17 09:06:44 +01:00
..
cassini.c cassini: Fix a memory leak in the error handling path of cas_init_one() 2023-05-17 09:06:44 +01:00
cassini.h ethernet/sun: fix repeated words in comments 2022-07-01 20:13:19 -07:00
Kconfig net: sun: SUNVNET_COMMON should depend on INET 2021-09-28 13:20:21 +01:00
ldmvsw.c ethernet: sun: add check for the mdesc_grab() 2023-03-17 07:47:39 +00:00
Makefile
niu.c niu: Fix missing unwind goto in niu_alloc_channels() 2023-04-07 08:17:54 +01:00
niu.h
sunbmac.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
sunbmac.h
sungem.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
sungem.h
sunhme.c net: sunhme: move asm includes to below linux includes 2023-04-06 19:00:41 -07:00
sunhme.h net: sunhme: Remove residual polling code 2023-03-27 08:41:56 +01:00
sunqe.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
sunqe.h
sunvnet_common.c sunvnet: Use kmap_local_page() instead of kmap_atomic() 2022-11-25 10:44:01 +00:00
sunvnet_common.h
sunvnet.c ethernet: sun: add check for the mdesc_grab() 2023-03-17 07:47:39 +00:00