projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cb29ea
)
[ALSA] ASoC codec probe failure bug
author
Liam Girdwood
<lg@opensource.wolfsonmicro.com>
Tue, 30 Jan 2007 16:18:45 +0000
(17:18 +0100)
committer
Jaroslav Kysela
<perex@suse.cz>
Fri, 9 Feb 2007 08:03:20 +0000
(09:03 +0100)
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>
sound/soc/soc-core.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index cf84d825171544ec21735e66553b42f6051d6ff2..736949fbb4d5536966c0f1f5aadfe1204227a15e 100644
(file)
--- 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);