Skip to contentSkip to conversation

ASoC codec probe failure bug

PATCH Applied Liam Girdwood 2 participants 2 messages Jan 29, 2007 – Jan 30, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC codec probe failure bug

This patch fixes a bug whereby some resources were not being freed when codec probe() failed.

soc/soc-core.c +1 -1
diff -r d7d86515fc27 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);

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Applied
#1 lore raw

At Mon, 29 Jan 2007 22:13:04 +0000,

Quoted 5 lines · Liam Girdwood

This patch fixes a bug whereby some resources were not being freed when codec probe() failed.

Applied to HG tree. Thanks.

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV