diff options
author | Liam Girdwood <lg@opensource.wolfsonmicro.com> | 2007-01-30 11:18:45 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-02-09 03:03:20 -0500 |
commit | 18b9b3d99677a758e77682d6849f58fc07e30bef (patch) | |
tree | b37b702d3e450efeb9caf3f2bf2cb081de3f59b5 /sound/soc/soc-core.c | |
parent | 0cb29ea0d449d7c0ecc9649a08ab63476389701d (diff) |
[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: | |||
1234 | codec_dev->remove(pdev); | 1234 | codec_dev->remove(pdev); |
1235 | 1235 | ||
1236 | cpu_dai_err: | 1236 | cpu_dai_err: |
1237 | for (i--; i > 0; i--) { | 1237 | for (i--; i >= 0; i--) { |
1238 | struct snd_soc_cpu_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 1238 | struct snd_soc_cpu_dai *cpu_dai = machine->dai_link[i].cpu_dai; |
1239 | if (cpu_dai->remove) | 1239 | if (cpu_dai->remove) |
1240 | cpu_dai->remove(pdev); | 1240 | cpu_dai->remove(pdev); |