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

2021-09-02 Thread Akhil Goyal
> > The QP setup function allocates buffer for its opaque MR and register it > into > > 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. > > > > A

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

2021-09-01 Thread Matan Azrad
From: Michael Baum > Sent: Tuesday, August 31, 2021 11:40 PM > To: dev@dpdk.org > Cc: Matan Azrad ; sta...@dpdk.org > Subject: [PATCH] compress/mlx5: fix QP setup error flow > > The QP setup function allocates buffer for its opaque MR and register it into > MR structure. > > After buffer allo

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

2021-08-31 Thread Michael Baum
The QP setup function allocates buffer for its opaque MR and register it into 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 al