aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_cmd.c
diff options
context:
space:
mode:
authorYajun Deng <yajun.deng@linux.dev>2022-03-03 10:42:32 +0800
committerJason Gunthorpe <jgg@nvidia.com>2022-03-04 17:30:31 -0400
commit7c4a539ec38f4ce400a0f3fcb5ff6c940fcd67bb (patch)
tree8d2243ea7d61d4228eb900f4229745a5a3cf8ddd /drivers/infiniband/hw/hns/hns_roce_cmd.c
parentIB/hfi1: Allow larger MTU without AIP (diff)
downloadlinux-dev-7c4a539ec38f4ce400a0f3fcb5ff6c940fcd67bb.tar.xz
linux-dev-7c4a539ec38f4ce400a0f3fcb5ff6c940fcd67bb.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_cmd.c')
0 files changed, 0 insertions, 0 deletions