OpenCloudOS-Kernel/drivers/infiniband/sw
Aditya Pakki 90a239ee25 RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq
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>
2020-06-18 09:35:47 -03:00
..
rdmavt RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq 2020-06-18 09:35:47 -03:00
rxe treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
siw RDMA/siw: Fix pointer-to-int-cast warning in siw_rx_pbl() 2020-06-15 16:00:08 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00