diff options
author | Liam Girdwood <lg@opensource.wolfsonmicro.com> | 2007-01-30 17:18:45 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-02-09 09:03:20 +0100 |
commit | 18b9b3d99677a758e77682d6849f58fc07e30bef (patch) | |
tree | b37b702d3e450efeb9caf3f2bf2cb081de3f59b5 /sound/soc/soc-core.c | |
parent | 0cb29ea0d449d7c0ecc9649a08ab63476389701d (diff) | |
download | blackbird-op-linux-18b9b3d99677a758e77682d6849f58fc07e30bef.tar.gz blackbird-op-linux-18b9b3d99677a758e77682d6849f58fc07e30bef.zip |
[ALSA] ASoC codec probe failure bug
This patch fixes a bug whereby some resources were not being freed when
codec probe() failed.
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index cf84d8251715..736949fbb4d5 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1234,7 +1234,7 @@ platform_err: codec_dev->remove(pdev); cpu_dai_err: - for (i--; i > 0; i--) { + for (i--; i >= 0; i--) { struct snd_soc_cpu_dai *cpu_dai = machine->dai_link[i].cpu_dai; if (cpu_dai->remove) cpu_dai->remove(pdev); |