kernel_samsung_a53x/drivers/net/ethernet/atheros/atl1e
Zhipeng Lu c53873803e ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
[ Upstream commit 309fdb1c33fe726d92d0030481346f24e1b01f07 ]

In the error handling of 'offset > adapter->ring_size', the
tx_ring->tx_buffer allocated by kzalloc should be freed,
instead of 'goto failed' instantly.

Fixes: a6a5325239c2 ("atl1e: Atheros L1E Gigabit Ethernet driver")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Reviewed-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:59 +01:00
..
atl1e.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atl1e_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atl1e_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atl1e_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atl1e_main.c ethernet: atheros: fix a memleak in atl1e_setup_ring_resources 2024-11-18 12:11:59 +01:00
atl1e_param.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00