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 <yanjun.zhu@linux.dev> Link: https://lore.kernel.org/r/20240314065140.27468-1-yanjun.zhu@linux.dev Reviewed-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 39cd87c commit 481047d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/infiniband/sw/rxe

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)