提交 4f3ad795 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: wm0010: unlock on error path

We're holding the wm0010->lock mutex when we goto err_core.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 58d46832
......@@ -663,7 +663,9 @@ static int wm0010_boot(struct snd_soc_codec *codec)
wm0010_halt(codec);
mutex_unlock(&wm0010->lock);
return ret;
err_core:
mutex_unlock(&wm0010->lock);
regulator_bulk_disable(ARRAY_SIZE(wm0010->core_supplies),
wm0010->core_supplies);
err:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册