platform_kernel-5.15/drivers/infiniband
Mark Zhang bb7a226780 IB/cm: Release previously acquired reference counter in the cm_id_priv
commit b856101a1774b5f1c8c99e8dfdef802856520732 upstream.

In failure flow, the reference counter acquired was not released,
and the following error was reported:

  drivers/infiniband/core/cm.c:3373 cm_lap_handler() warn: inconsistent
			refcounting 'cm_id_priv->refcount.refs.counter':

Fixes: 7345201c39 ("IB/cm: Improve the calling of cm_init_av_for_lap and cm_init_av_by_path")
Link: https://lore.kernel.org/r/7615f23bbb5c5b66d03f6fa13e1c99d51dae6916.1642581448.git.leonro@nvidia.com
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:34:08 +01:00
..
core IB/cm: Release previously acquired reference counter in the cm_id_priv 2022-02-08 18:34:08 +01:00
hw IB/hfi1: Fix tstats alloc and dealloc 2022-02-08 18:34:08 +01:00
sw RDMA/siw: Fix broken RDMA Read Fence/Resume logic. 2022-02-08 18:34:07 +01:00
ulp RDMA/rtrs-clt: Fix the initial value of min_latency 2022-01-27 11:04:07 +01: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