numam-dpdk/drivers/compress/mlx5
Michael Baum 12b253ee87 compress/mlx5: fix leak on QP setup failure
The QP setup function allocates buffer for its
opaque MR and register it into MR structure.

After buffer allocation and before MR registration,
it tries allocate MR Btree.
When the MR Btree allocation fails, the buffer was
not freed what caused a memory leak.

Allocate the MR Btree before buffer alloction.

Fixes: 0165bccdb4 ("compress/mlx5: add memory region management")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-09-06 21:46:34 +02:00
..
meson.build build: fix formatting of Meson lists 2021-05-04 15:01:47 +02:00
mlx5_compress_utils.h compress/mlx5: introduce PMD 2021-01-27 20:40:03 +01:00
mlx5_compress.c compress/mlx5: fix leak on QP setup failure 2021-09-06 21:46:34 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00