Skip to content
Snippets Groups Projects
Commit ec63a59c authored by Yanjun.Zhu's avatar Yanjun.Zhu Committed by Frieder Schrempf
Browse files

RDMA/rxe: Fix the problem "mutex_destroy missing"


[ Upstream commit 481047d7 ]

When a mutex lock is not used any more, the function mutex_destroy
should be called to mark the mutex lock uninitialized.

Fixes: 8700e3e7 ("Soft RoCE driver")
Signed-off-by: default avatarYanjun.Zhu <yanjun.zhu@linux.dev>
Link: https://lore.kernel.org/r/20240314065140.27468-1-yanjun.zhu@linux.dev


Reviewed-by: default avatarDaisuke Matsuda <matsuda-daisuke@fujitsu.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 705df7bb
No related branches found
No related tags found
1 merge request!143🤖 Sync Bot: Update v5.4-ktn to Latest Stable Kernel (v5.4.275)
......@@ -72,6 +72,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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment