]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Release object lock if destroy failed
authorArtemy Kovalyov <artemyko@mellanox.com>
Tue, 28 Aug 2018 11:40:32 +0000 (14:40 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 4 Sep 2018 21:07:55 +0000 (15:07 -0600)
commit6adcde8602a1e1e723ddaf1ab8b0b2250e0d9d2d
treea17ff2322f9ea626aaf531d153fa331fc04b8f24
parent75a0da55913490cdab7ce718345bfce985cf8ed7
IB/core: Release object lock if destroy failed

The object lock was supposed to always be released during destroy, but
when the destruction retry series was integrated with the destroy series
it created a failure path that missed the unlock.

Keep with convention, if destroy fails the caller must undo all locking.

Fixes: 57f8aff6870b ("IB/uverbs: Consolidate uobject destruction")
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c