From 0dee3d0b6344aca96c41656de99ca1c8ed60e986 Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Wed, 19 Nov 2025 14:39:12 +0200 Subject: [PATCH] fixup! ASoC: SOF: Use guard()/scoped_guard() for mutex locks where it makes sense Looks like a jump over to the error handling path can confise the guard system, use scoped_guard() in sof_client_dev_register(). Signed-off-by: Peter Ujfalusi --- sound/soc/sof/sof-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/sof-client.c b/sound/soc/sof/sof-client.c index 47a0b816276bf9..4ad3e6f04005cd 100644 --- a/sound/soc/sof/sof-client.c +++ b/sound/soc/sof/sof-client.c @@ -294,8 +294,8 @@ int sof_client_dev_register(struct snd_sof_dev *sdev, const char *name, u32 id, } /* add to list of SOF client devices */ - guard(mutex)(&sdev->ipc_client_mutex); - list_add(¢ry->list, &sdev->ipc_client_list); + scoped_guard(mutex, &sdev->ipc_client_mutex) + list_add(¢ry->list, &sdev->ipc_client_list); return 0;