ASoC: wm0010: unlock on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Sep 2012 12:29:46 +0000 (15:29 +0300)
committerMark 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

index a4c35119792e47ea836959489a44812d2d964d08..0274f04a940a76b339365f9047045fcf970e894c 100644 (file)
@@ -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: