[PATCH 2/2] vdpa/mlx5: fix RQT attributes memory leak

Maxime Coquelin maxime.coquelin at redhat.com
Tue Nov 10 15:58:40 CET 2026


On Sun, Oct 25, 2026 at 9:17 AM Maayan Kashani <mkashani at nvidia.com> wrote:
>
> mlx5_vdpa_rqt_prepare() allocates RQT attributes with rte_zmalloc() but
> returns without freeing them when no enabled receive queue is found
> (k == 0). Every steering update that hits this path leaks the
> allocation.
>
> Free attr before returning on the no-enabled-RQ path.
>
> Fixes: 9f09b1ca15c5 ("vdpa/mlx5: recreate a virtq becoming enabled")
> Cc: stable at dpdk.org
>
> Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> ---
>  drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>

Applied to next-virtio/for-next-net.

Thanks,
Maxime



More information about the dev mailing list