mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 02:47:31 -04:00
[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>
This commit is contained in:
committed by
Jaroslav Kysela
parent
0cb29ea0d4
commit
18b9b3d996
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user