[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201221130246.1807-1-zhengyongjun3@huawei.com>
Date: Mon, 21 Dec 2020 21:02:46 +0800
From: Zheng Yongjun <zhengyongjun3@...wei.com>
To: <johan@...nel.org>, <elder@...nel.org>,
<gregkh@...uxfoundation.org>, <greybus-dev@...ts.linaro.org>,
<devel@...verdev.osuosl.org>, <linux-kernel@...r.kernel.org>
CC: Zheng Yongjun <zhengyongjun3@...wei.com>
Subject: [PATCH -next] greybus/audio_helper: Add missing unlock to avoid mismatched lock
Fix a missing unlock in the error branch.
Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
---
drivers/staging/greybus/audio_helper.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/greybus/audio_helper.c b/drivers/staging/greybus/audio_helper.c
index 237531ba60f3..293675dbea10 100644
--- a/drivers/staging/greybus/audio_helper.c
+++ b/drivers/staging/greybus/audio_helper.c
@@ -135,6 +135,7 @@ int gbaudio_dapm_free_controls(struct snd_soc_dapm_context *dapm,
if (!w) {
dev_err(dapm->dev, "%s: widget not found\n",
widget->name);
+ mutex_unlock(&dapm->card->dapm_mutex);
return -EINVAL;
}
widget++;
--
2.22.0
Powered by blists - more mailing lists