]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Fix double put of resource
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 7 May 2020 06:29:42 +0000 (09:29 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 12 May 2020 14:47:48 +0000 (11:47 -0300)
commit8a9911566135b84b9c51fe8387d735339c358732
treef2d431829198350a0774097355aa3e07ba7b519e
parent9160ddb92c8367d867349193838f1a0360b9742d
RDMA/core: Fix double put of resource

Do not decrease the reference count of resource tracker object twice in
the error flow of res_get_common_doit.

Fixes: 9cefd731762e ("RDMA/nldev: Add resource tracker doit callback")
Link: https://lore.kernel.org/r/20200507062942.98305-1-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/nldev.c