aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm0010.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-09-05 08:29:46 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-05 18:20:14 -0400
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:
663 wm0010_halt(codec); 663 wm0010_halt(codec);
664 mutex_unlock(&wm0010->lock); 664 mutex_unlock(&wm0010->lock);
665 return ret; 665 return ret;
666
666err_core: 667err_core:
668 mutex_unlock(&wm0010->lock);
667 regulator_bulk_disable(ARRAY_SIZE(wm0010->core_supplies), 669 regulator_bulk_disable(ARRAY_SIZE(wm0010->core_supplies),
668 wm0010->core_supplies); 670 wm0010->core_supplies);
669err: 671err: