diff options
| author | Chenguang Zhao <zhaochenguang@kylinos.cn> | 2026-07-23 10:18:19 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2026-07-29 09:33:10 +0100 |
| commit | c870f7e2890b9f78ac84515a9809cc5c183c975e (patch) | |
| tree | b62c9501218e17782d3b7c5773625daf42f19096 /include/linux/workqueue.h | |
| parent | 3bd438a58e910db5dc369aa25dfed1fc95f1b596 (diff) | |
net: sxgbe: free TX rings on RX allocation failure
When RX descriptor ring allocation fails, init_dma_desc_rings() only
frees the partially allocated RX rings and returns. The TX rings that
were allocated earlier in the same function are leaked.
Rearrange error labels to clean up TX rings upon RX failures.
Fixes: 1edb9ca69e8a ("net: sxgbe: add basic framework for Samsung 10Gb ethernet driver")
Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
