numam-dpdk/drivers/compress
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
..
isal version: 21.11-rc0 2021-08-17 08:37:52 +02:00
mlx5 compress/mlx5: fix leak on QP setup failure 2021-09-06 21:46:34 +02:00
octeontx version: 21.11-rc0 2021-08-17 08:37:52 +02:00
qat drivers: fix return of unsupported features on QAT GEN4 2021-07-30 21:08:19 +02:00
zlib version: 21.11-rc0 2021-08-17 08:37:52 +02:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00