diff options
| author | Zhipeng Lu <[email protected]> | 2023-12-14 13:04:04 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-12-15 10:55:35 +0000 |
| commit | 309fdb1c33fe726d92d0030481346f24e1b01f07 (patch) | |
| tree | c85e3e3ba7b55b625b303dfebf190ae8903feae5 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | net: sched: ife: fix potential use-after-free (diff) | |
| download | kernel-309fdb1c33fe726d92d0030481346f24e1b01f07.tar.gz kernel-309fdb1c33fe726d92d0030481346f24e1b01f07.zip | |
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: a6a5325239c2 ("atl1e: Atheros L1E Gigabit Ethernet driver")
Signed-off-by: Zhipeng Lu <[email protected]>
Reviewed-by: Suman Ghosh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
