numam-dpdk/drivers
Dmitry Kozlyuk 9ec1ceab76 net/mlx5: fix Rx queue resource cleanup
mlx5_rxq_start() allocates rxq_ctrl->obj and frees it on failure,
but did not set it to NULL. Later mlx5_rxq_release() could not recognize
this object is already freed and attempted to release its resources,
resulting in a crash:

    Configuring Port 0 (socket 0)
    mlx5_common: Failed to create RQ using DevX
    mlx5_common: Can't create DevX RQ object.
    mlx5_net: Port 0 Rx queue 0 RQ creation failure.
    Segmentation fault

Set rxq_ctrl->obj to NULL after it is freed to skip resource release.

Fixes: 1260a87b28 ("net/mlx5: share Rx control code")
Cc: stable@dpdk.org

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-10-21 09:31:17 +02:00
..
baseband baseband/la12xx: support enqueue and dequeue 2021-10-18 20:12:08 +02:00
bus devargs: make bus optional 2021-10-21 11:32:44 +02:00
common common/cnxk: add new PCI IDs to supported devices 2021-10-21 13:43:56 +02:00
compress common/mlx5: share MR mempool registration 2021-10-21 15:58:00 +02:00
crypto common/mlx5: share MR mempool registration 2021-10-21 15:58:00 +02:00
dma dma/idxd: fix build on Windows 2021-10-23 08:52:25 +02:00
event common/cnxk: add new PCI IDs to supported devices 2021-10-21 13:43:56 +02:00
mempool common/cnxk: add new PCI IDs to supported devices 2021-10-21 13:43:56 +02:00
net net/mlx5: fix Rx queue resource cleanup 2021-10-21 09:31:17 +02:00
raw dma/idxd: move config script from raw driver 2021-10-22 22:40:59 +02:00
regex common/mlx5: share MR mempool registration 2021-10-21 15:58:00 +02:00
vdpa common/mlx5: share HCA capabilities handle 2021-10-21 15:53:46 +02:00
meson.build raw/ioat: build only if dmadev not present 2021-10-22 22:40:58 +02:00