TencentOS-kernel/drivers/infiniband/sw
Aditya Pakki 3485d78b45 RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq
[ Upstream commit 90a239ee25fa3a483facec3de7c144361a3d3a51 ]

In case of failure of alloc_ud_wq_attr(), the memory allocated by
rvt_alloc_rq() is not freed. Fix it by calling rvt_free_rq() using the
existing clean-up code.

Fixes: d310c4bf8aea ("IB/{rdmavt, hfi1, qib}: Remove AH refcount for UD QPs")
Link: https://lore.kernel.org/r/20200614041148.131983-1-pakki001@umn.edu
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:30:58 +08:00
..
rdmavt RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq 2021-03-16 16:30:58 +08:00
rxe RDMA/rxe: Always return ERR_PTR from rxe_create_mmap_info() 2021-03-16 16:27:56 +08:00
siw RDMA/siw: Fix pointer-to-int-cast warning in siw_rx_pbl() 2021-03-16 16:30:56 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00