Zhipeng Lu ed4cb8a42c 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-01-08 11:29:44 +01:00
..
2021-10-20 11:40:16 +02:00
2021-10-13 10:08:20 +02:00
2023-08-30 16:27:24 +02:00
2023-12-20 15:41:14 +01:00
2022-08-03 11:59:41 +02:00
2022-05-12 12:23:46 +02:00
2023-11-08 11:23:35 +01:00
2021-10-20 11:40:16 +02:00