Mark Zhang b856101a17 IB/cm: Release previously acquired reference counter in the cm_id_priv
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: 7345201c3963 ("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>
2022-01-28 12:47:26 -04:00
..
2021-04-08 16:14:56 -03:00
2015-06-12 14:49:18 -04:00
2022-01-13 11:09:11 -08:00
2021-04-12 14:52:22 -03:00
2020-12-10 15:05:17 -04: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-11-01 14:49:20 -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