Re: [RFT 1/4] net/mlx5: fix NULL dereference in Tx queue start

Dariusz Sosnowski
2026-02-26T09:56:34Z

On Tue, Feb 17, 2026 at 07:04:59AM -0800, Stephen Hemminger wrote:
> mlx5_txq_get() can return NULL for an unconfigured queue index,
> but the result is dereferenced to initialise txq_data before the
> NULL check on the following line. Move the txq_data assignment
> after the NULL guard.
>
> Fixes: 6f356d3840e6 ("net/mlx5: pass DevX object info in Tx queue start")
> Cc: stable@dpdk.org
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

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