]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: Fix snd_soc_{new,free}_ac97_codec() locking removal
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 23 Sep 2014 02:15:48 +0000 (04:15 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 Sep 2014 13:45:06 +0000 (14:45 +0100)
Commit e3f205a72c45 ("ASoC: Remove locking in
snd_soc_{new,free}_ac97_codec()") overlooked a unlock on one of the error
paths.

Fixes: e3f205a72c45 ("ASoC: Remove locking in snd_soc_{new,free}_ac97_codec()")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c

index a504cf42bf0a0e71bfaed0d89a36e57e394230cb..3c57f5cf277951b258455111f0059a580b150dd8 100644 (file)
@@ -2115,7 +2115,6 @@ int snd_soc_new_ac97_codec(struct snd_soc_codec *codec,
        if (codec->ac97->bus == NULL) {
                kfree(codec->ac97);
                codec->ac97 = NULL;
-               mutex_unlock(&codec->mutex);
                return -ENOMEM;
        }