Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18b9b3d9 authored by Liam Girdwood's avatar Liam Girdwood Committed by Jaroslav Kysela
Browse files

[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: default avatarLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 0cb29ea0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);