linux/drivers/infiniband
Yajun Deng 7c4a539ec3 RDMA/core: Fix ib_qp_usecnt_dec() called when error
ib_destroy_qp() would called by ib_create_qp_user() if error, the former
contains ib_qp_usecnt_dec(), but ib_qp_usecnt_inc() was not called before.

So move ib_qp_usecnt_inc() into create_qp().

Fixes: d2b10794fc ("RDMA/core: Create clean QP creations interface for uverbs")
Link: https://lore.kernel.org/r/20220303024232.2847388-1-yajun.deng@linux.dev
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-03-04 17:30:31 -04:00
..
core RDMA/core: Fix ib_qp_usecnt_dec() called when error 2022-03-04 17:30:31 -04:00
hw IB/hfi1: Allow larger MTU without AIP 2022-03-04 17:22:02 -04:00
sw RDMA/rxe: Cleanup rxe_mcast.c 2022-02-23 20:29:15 -04:00
ulp RDMA/ib_srp: Add more documentation 2022-02-23 15:13:23 -04:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00