[PATCH v2] net/mlx5: fix memoy leak after device spawn failure

Dariusz Sosnowski dsosnowski at nvidia.com
Thu Feb 5 10:06:52 CET 2026


On Thu, Dec 18, 2025 at 06:57:26PM +0800, Yunjian Wang wrote:
> In mlx5_dev_spawn() allocated memory for the 'priv->flows',
> we should free it when errors occur, otherwise it will lead
> to memory leak.
> 
> Fixes: b4edeaf3efd5 ("net/mlx5: replace flow list with indexed pool")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>

Nice catch! Thank you for the contribution.

There's one small typo in commit title: memoy -> memory
We'll fix that when applying.

Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Best regards,
Dariusz Sosnowski



More information about the stable mailing list