diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-09-05 15:29:46 +0300 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-06 06:20:14 +0800 |
commit | 4f3ad7956d91a5371a572f0420cc07f8c4f32c22 (patch) | |
tree | e76f670a6ff609bf98bb9679b96b34ec2b9880e3 | |
parent | 58d468328646effa72ada4deaa33e80d678980d6 (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>
-rw-r--r-- | sound/soc/codecs/wm0010.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index a4c35119792..0274f04a940 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: |