summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm0010.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-09-05 15:29:46 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-06 06:20:14 +0800
commit4f3ad7956d91a5371a572f0420cc07f8c4f32c22 (patch)
treee76f670a6ff609bf98bb9679b96b34ec2b9880e3 /sound/soc/codecs/wm0010.c
parent58d468328646effa72ada4deaa33e80d678980d6 (diff)
ASoC: wm0010: unlock on error path
We're holding the wm0010->lock mutex when we goto err_core. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm0010.c')
-rw-r--r--sound/soc/codecs/wm0010.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c
index a4c35119792e..0274f04a940a 100644
--- a/sound/soc/codecs/wm0010.c
+++ b/sound/soc/codecs/wm0010.c
@@ -663,7 +663,9 @@ abort:
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: