Re: [PATCH] RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq

2020-06-13 Thread Dennis Dalessandro
On 6/12/2020 3:54 PM, Aditya Pakki wrote: In case of failure of alloc_ud_wq_attr, the memory allocated by rvt_alloc_rq() is not freed. The patch fixes this issue by calling rvt_free_rq(). Signed-off-by: Aditya Pakki --- drivers/infiniband/sw/rdmavt/qp.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq

2020-06-12 Thread Aditya Pakki
In case of failure of alloc_ud_wq_attr, the memory allocated by rvt_alloc_rq() is not freed. The patch fixes this issue by calling rvt_free_rq(). Signed-off-by: Aditya Pakki --- drivers/infiniband/sw/rdmavt/qp.c | 1 + 1 file changed, 1 insertion(+) diff --git