android_kernel_xiaomi_sm8350/drivers/infiniband/sw/rdmavt
Aditya Pakki 66143ecb9e 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: d310c4bf8a ("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>
2020-06-30 15:36:57 -04:00
..
ah.c
ah.h
cq.c
cq.h
Kconfig
mad.c
mad.h
Makefile
mcast.c
mcast.h
mmap.c
mmap.h
mr.c
mr.h
pd.c
pd.h
qp.c
qp.h
rc.c
srq.c
srq.h
trace_cq.h
trace_mr.h
trace_qp.h
trace_rc.h
trace_rvt.h
trace_tx.h
trace.c
trace.h
vt.c
vt.h