Thread (3 messages) 3 messages, 3 authors, 2021-09-02

Re: [dpdk-dev] [PATCH] compress/mlx5: fix QP setup error flow

From: Akhil Goyal <hidden>
Date: 2021-09-02 10:14:54

quoted
The QP setup function allocates buffer for its opaque MR and register it
into
quoted
MR structure.

After buffer alloction 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: 0165bccdb45f ("compress/mlx5: add memory region management")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <redacted>
Acked-by: Matan Azrad <redacted>
Applied to dpdk-next-crypto

Thanks,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help