linux-stable/drivers/net/ethernet/atheros
Zhipeng Lu 309fdb1c33 ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
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>
2023-12-15 10:55:35 +00:00
..
alx alx: fix OOB-read compiler warning 2023-08-22 12:30:15 +02:00
atl1c net: atl1c: switch to napi_consume_skb() 2023-10-01 13:54:07 +01:00
atl1e ethernet: atheros: fix a memleak in atl1e_setup_ring_resources 2023-12-15 10:55:35 +00:00
atlx netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule 2023-10-11 17:28:06 -07:00
ag71xx.c net: ethernet: atheros: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
Kconfig
Makefile