RDMA/rxe: Fix the problem "mutex_destroy missing"
Subsystems (2)
PATCH 1/1 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 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by Yanjun.Zhu <[email protected]>
--- drivers/infiniband/sw/rxe/rxe.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/infiniband/sw/rxe/rxe.c +2 -0
@@ -33,6 +33,8 @@ void rxe_dealloc(struct ib_device *ib_dev)if (rxe->tfm)crypto_free_shash (rxe->tfm); + +mutex_destroy (&rxe->usdev_lock); }/* initialize rxe device parameters */
Signature · 1 line
2.34.1
Quoted 24 lines · Yanjun.Zhu
When a mutex lock is not used any more, the function
mutex_destroyshould be called to mark the mutex lock uninitialized.Fixes 8700e3e7c485 ("Soft RoCE driver")Signed-off-by Yanjun.Zhu <[email protected]>--- drivers/infiniband/sw/rxe/rxe.c | 2 ++ 1 file changed, 2 insertions(+)drivers/infiniband/sw/rxe/rxe.c +2
-1@@ -33,6 +33,8 @@ void rxe_dealloc(struct ib_device *ib_dev)if (rxe->tfm)crypto_free_shash (rxe->tfm); + +mutex_destroy (&rxe->usdev_lock); }/* initialize rxe device parameters */ --
Quoted 2 lines
2.34.1
That's right.
Reviewed-by Daisuke Matsuda <[email protected]>
Daisuke
Leon Romanovsky
AppliedQuoted 4 lines · Yanjun.Zhu
When a mutex lock is not used any more, the function
mutex_destroyshould be called to mark the mutex lock uninitialized.
Applied, thanks!
[1/1] RDMA/rxe: Fix the problem "mutex_destroy missing"
https://git.kernel.org/rdma/rdma/c/481047d7e8391d
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>