summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2020-06-13 23:11:48 -0500
committerSasha Levin <sashal@kernel.org>2020-06-30 15:36:57 -0400
commit66143ecb9e3cfb1428b1b82feec35178e6ece844 (patch)
treec4b47ec680b65eb71be76b74fe8d93ca87dab3a3 /block
parentd6fb7f457456b528804b4c21fd8e781b18519cde (diff)
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions