On 2/11/2026 7:12 PM, Bruce Richardson wrote:
When TX queue setup fails after sw_ring allocation but during
completion queue setup, the allocated sw_ring memory is not freed,
causing a memory leak.

This patch adds the missing rte_free() call in the error path for
both cpfl and idpf drivers to properly clean up sw_ring before
returning from the function.

Fixes: 6c2d333cd418 ("net/cpfl: support Tx queue setup")
Fixes: c008a5e740bd ("common/idpf: add queue setup/release")
Cc: [email protected]

Signed-off-by: Bruce Richardson <[email protected]>
---

Acked-by: Anatoly Burakov <[email protected]>

--
Thanks,
Anatoly

Reply via email to