Skip to content

Commit 481047d

Browse files
zhuyjrleon
authored andcommitted
RDMA/rxe: Fix the problem "mutex_destroy missing"
When a mutex lock is not used any more, the function mutex_destroy should be called to mark the mutex lock uninitialized. Fixes: 8700e3e ("Soft RoCE driver") Signed-off-by: Yanjun.Zhu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Daisuke Matsuda <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 39cd87c commit 481047d

File tree

1 file changed

+2
-0
lines changed
  • drivers/infiniband/sw/rxe

1 file changed

+2
-0
lines changed

drivers/infiniband/sw/rxe/rxe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ void rxe_dealloc(struct ib_device *ib_dev)
3333

3434
if (rxe->tfm)
3535
crypto_free_shash(rxe->tfm);
36+
37+
mutex_destroy(&rxe->usdev_lock);
3638
}
3739

3840
/* initialize rxe device parameters */

0 commit comments

Comments
 (0)