Commit 4f3ad795 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

ASoC: wm0010: unlock on error path

We're holding the wm0010->lock mutex when we goto err_core.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment