diff options
author | Jason Gunthorpe <[email protected]> | 2018-02-13 12:18:40 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2018-02-15 15:31:26 -0700 |
commit | ec6f8401c48a86809237e86878a6fac6b281118f (patch) | |
tree | 89769f2e7b09a3a19973735b2801f984806c7c99 /scripts/gdb/linux/lists.py | |
parent | 104f268d439b3c21c83708e52946a4d8d37f3d0f (diff) |
IB/uverbs: Fix unbalanced unlock on error path for rdma_explicit_destroy
If remove_commit fails then the lock is left locked while the uobj still
exists. Eventually the kernel will deadlock.
lockdep detects this and says:
test/4221 is leaving the kernel with locks still held!
1 lock held by test/4221:
#0: (&ucontext->cleanup_rwsem){.+.+}, at: [<000000001e5c7523>] rdma_explicit_destroy+0x37/0x120 [ib_uverbs]
Fixes: 4da70da23e9b ("IB/core: Explicitly destroy an object while keeping uobject")
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions