[PATCH] net/mlx5: fix bug trunk is null
Raslan Darawsheh
rasland at nvidia.com
Mon May 20 12:58:22 CEST 2024
Hi,
From: Haifei Luo <haifeil at nvidia.com>
Sent: Wednesday, May 15, 2024 12:36 PM
To: Matan Azrad; Ori Kam; Slava Ovsiienko; ferruh.yigit at intel.com; Dariusz Sosnowski; Suanming Mou
Cc: dev at dpdk.org; NBU-Contact-Thomas Monjalon (EXTERNAL); Raslan Darawsheh; stable at dpdk.org
Subject: [PATCH] net/mlx5: fix bug trunk is null
When _mlx5_ipool_get_cache is called, idx may be invalid and
the "trunk" is NULL in this case. Assert is not correct and add
checks that if trunk is NULL or not. Return NULL If trunk is NULL.
Fixes: 42f463395f ("net/mlx5: support indexed pool non-lcore operations")
Cc: stable at dpdk.org
Signed-off-by: Haifei Luo <haifeil at nvidia.com>
Acked-by: Suanming Mou <suanmingm at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
More information about the dev
mailing list