From: Dan Carpenter Date: Wed, 5 Sep 2012 12:29:46 +0000 (+0300) Subject: ASoC: wm0010: unlock on error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f3ad7956d91a5371a572f0420cc07f8c4f32c22;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 a4c35119792e..0274f04a940a 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: