From: Dan Carpenter Date: Wed, 5 Sep 2012 12:29:46 +0000 (+0300) Subject: ASoC: wm0010: unlock on error path X-Git-Tag: v3.7-rc1~81^2~14^2~102 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4f3ad7956d91a5371a572f0420cc07f8c4f32c22;p=~emulex%2Finfiniband.git ASoC: wm0010: unlock on error path We're holding the wm0010->lock mutex when we goto err_core. Signed-off-by: Dan Carpenter Signed-off-by: Mark Brown --- 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: