diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-09-23 06:15:48 +0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-23 17:45:06 +0400 |
commit | 8c8f2f6fc1c8eec9e14810f21386fe295a42a40f (patch) | |
tree | cc10dfbfcfe1c855a313da1168b3d4405f2665ac /sound/soc/soc-core.c | |
parent | e3f205a72c4554b58f51d5afd98195c4ff54d215 (diff) | |
download | linux-8c8f2f6fc1c8eec9e14810f21386fe295a42a40f.tar.xz |
ASoC: Fix snd_soc_{new,free}_ac97_codec() locking removal
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>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index a504cf42bf0a..3c57f5cf2779 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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; } |