[PATCH v5 02/35] net/intel: fix memory leak on TX queue setup failure
Burakov, Anatoly
anatoly.burakov at intel.com
Thu Feb 12 13:14:44 CET 2026
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: stable at dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
--
Thanks,
Anatoly
More information about the stable
mailing list