mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ASoC: Fix snd_soc_{new,free}_ac97_codec() locking removal
Commite3f205a72c
("ASoC: Remove locking in snd_soc_{new,free}_ac97_codec()") overlooked a unlock on one of the error paths. Fixes:e3f205a72c
("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>
This commit is contained in:
parent
e3f205a72c
commit
8c8f2f6fc1
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue