forked from luck/tmp_suning_uos_patched
ASoC: wm0010: unlock on error path
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>
This commit is contained in:
parent
58d4683286
commit
4f3ad7956d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user