diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-09-05 12:29:46 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-05 22:20:14 (GMT) |
commit | 4f3ad7956d91a5371a572f0420cc07f8c4f32c22 (patch) | |
tree | e76f670a6ff609bf98bb9679b96b34ec2b9880e3 /sound/soc/codecs/wm0010.c | |
parent | 58d468328646effa72ada4deaa33e80d678980d6 (diff) | |
download | linux-fsl-qoriq-4f3ad7956d91a5371a572f0420cc07f8c4f32c22.tar.xz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index a4c3511..0274f04 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: |