projects
/
wrapfs-5.15.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8311577
)
RDMA/rxe: Fix the problem "mutex_destroy missing"
author
Yanjun.Zhu
<yanjun.zhu@linux.dev>
Thu, 14 Mar 2024 06:51:40 +0000
(07:51 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:05:25 +0000
(17:05 +0200)
[ Upstream commit
481047d7e8391d3842ae59025806531cdad710d9
]
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 <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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rxe/rxe.c
b/drivers/infiniband/sw/rxe/rxe.c
index 8e0f9c489cab2940dcf3ea03f3b0569ccf96616a..f6ef782ce75c15893fef653e8675793653d39a76 100644
(file)
--- a/
drivers/infiniband/sw/rxe/rxe.c
+++ b/
drivers/infiniband/sw/rxe/rxe.c
@@
-35,6
+35,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 */