RE: [EXT] [PATCH] [v2] ethernet: atheros: fix a memleak in atl1e_setup_ring_resources

From: Suman Ghosh
Date: Fri Dec 08 2023 - 03:53:36 EST


>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@xxxxxxxxxx>
>---
Reviewed-by: Suman Ghosh <sumang@xxxxxxxxxxx>
>
>Changelog:
>
>v2: Setting tx_ring->tx_buffer to NULL after free.