Skip to content

Commit

Permalink
ASoC: wm0010: unlock on error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Sep 5, 2012
1 parent 58d4683 commit 4f3ad79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/codecs/wm0010.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ static int wm0010_boot(struct snd_soc_codec *codec)
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:
Expand Down

0 comments on commit 4f3ad79

Please sign in to comment.