linux_dsm_epyc7002/drivers/infiniband/hw
Keita Suzuki 3e45410fe3 RDMA/qedr: Fix resource leak in qedr_create_qp
When xa_insert() fails, the acquired resource in qedr_create_qp should
also be freed. However, current implementation does not handle the error.

Fix this by adding a new goto label that calls qedr_free_qp_resources.

Fixes: 1212767e23 ("qedr: Add wrapping generic structure for qpidr and adjust idr routines.")
Link: https://lore.kernel.org/r/20200911125159.4577-1-keitasuzuki.park@sslab.ics.keio.ac.jp
Signed-off-by: Keita Suzuki <keitasuzuki.park@sslab.ics.keio.ac.jp>
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-18 12:45:41 -03:00
..
bnxt_re Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
cxgb4 RDMA/iw_cxgb4: Disable delayed ack by default 2020-09-18 11:29:37 -03:00
efa RDMA/efa: Use ib_umem_num_dma_pages() 2020-09-11 10:24:53 -03:00
hfi1 Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
hns RDMA: Clean MW allocation and free flows 2020-09-17 14:04:32 -03:00
i40iw RDMA/i40iw: Avoid typecast from void to pci_dev 2020-09-16 13:40:29 -03:00
mlx4 Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
mlx5 Merge branch 'mlx_sw_owner_v2' into rdma.git for-next 2020-09-18 10:31:45 -03:00
mthca RDMA/umem: Split ib_umem_num_pages() into ib_umem_num_dma_blocks() 2020-09-11 10:24:53 -03:00
ocrdma Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
qedr RDMA/qedr: Fix resource leak in qedr_create_qp 2020-09-18 12:45:41 -03:00
qib Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
usnic RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
vmw_pvrdma Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00