projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58d4683
)
ASoC: wm0010: unlock on error path
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 5 Sep 2012 12:29:46 +0000
(15:29 +0300)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 5 Sep 2012 22:20:14 +0000
(06:20 +0800)
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>
sound/soc/codecs/wm0010.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm0010.c
b/sound/soc/codecs/wm0010.c
index
a4c3511
..
0274f04
100644
(file)
--- 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: