WSL2-Linux-Kernel/drivers/net/ethernet/atheros
Zhipeng Lu 66d2116880 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: a6a5325239 ("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-05 15:13:29 +01:00
..
alx alx: fix OOB-read compiler warning 2023-09-23 11:09:56 +02:00
atl1c atl1c: Work around the DMA RX overflow issue 2023-11-28 16:56:15 +00:00
atl1e ethernet: atheros: fix a memleak in atl1e_setup_ring_resources 2024-01-05 15:13:29 +01:00
atlx
Kconfig
Makefile
ag71xx.c ethernet: use of_get_ethdev_address() 2023-07-27 08:47:00 +02:00