[PATCH v2] net/mlx5: fix memoy leak after device spawn failure
Raslan Darawsheh
rasland at nvidia.com
Sun Feb 8 14:27:30 CET 2026
Hi,
>> -----Original Message-----
>> From: Wangyunjian <wangyunjian at huawei.com>
>> Sent: Thursday, December 18, 2025 6:57 PM
>> To: dev at dpdk.org
>> Cc: matan at nvidia.com; suanmingm at nvidia.com; Lilijun (Jerry)
>> <jerry.lilijun at huawei.com>; Wangyunjian <wangyunjian at huawei.com>;
>> stable at dpdk.org
>> Subject: [PATCH v2] net/mlx5: fix memoy leak after device spawn failure
>>
>> 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>
>> ---
>> v2: fix code styles
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
More information about the stable
mailing list