提交 18b9b3d9 编写于 作者: L Liam Girdwood 提交者: Jaroslav Kysela

[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: NLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 0cb29ea0
......@@ -1234,7 +1234,7 @@ static int soc_probe(struct platform_device *pdev)
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册