[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220305002527.GC1248225@nvidia.com>
Date: Fri, 4 Mar 2022 20:25:27 -0400
From: Jason Gunthorpe <jgg@...dia.com>
To: Yajun Deng <yajun.deng@...ux.dev>
Cc: leonro@...dia.com, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH for-next] RDMA/core: Fix ib_qp_usecnt_dec() called when
error
On Thu, Mar 03, 2022 at 10:42:32AM +0800, Yajun Deng wrote:
> 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")
> Signed-off-by: Yajun Deng <yajun.deng@...ux.dev>
> Reviewed-by: Leon Romanovsky <leonro@...dia.com>
> ---
> drivers/infiniband/core/uverbs_cmd.c | 1 -
> drivers/infiniband/core/uverbs_std_types_qp.c | 1 -
> drivers/infiniband/core/verbs.c | 3 +--
> 3 files changed, 1 insertion(+), 4 deletions(-)
Applied to for-next, thanks
Jason
Powered by blists - more mailing lists