Re: [PATCH rdma-rc] IB/core: Release object lock if destroy failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 28, 2018 at 02:40:32PM +0300, Leon Romanovsky wrote:
> From: Artemy Kovalyov <artemyko@xxxxxxxxxxxx>
> 
> 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: 87ad80abc70d ("IB/uverbs: Consolidate uobject destruction")
> Signed-off-by: Artemy Kovalyov <artemyko@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/core/rdma_core.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied to for-rc, thanks

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux