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: d2b10794fc13 ("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
..
2015-06-12 14:49:18 -04:00
2021-04-12 14:52:22 -03:00
2021-04-12 14:56:48 -03:00
2019-06-28 21:18:23 -03:00
2016-03-03 10:20:25 -05:00
2021-10-05 14:49:58 -03:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2022-01-05 15:15:15 -04:00
2020-07-06 14:54:46 -03:00
2021-05-28 20:39:51 -03:00