]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit50bbe3d34fea74b7c0fabe553c40c2f4a48bb9c3
treef2d431829198350a0774097355aa3e07ba7b519e
parent1901b91f99821955eac2bd48fe25ee983385dc00
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: c5dfe0ea6ffa ("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