Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: au1x: dbdma2: plug memleak in pcm device creation error path

free the allocated pcm platform device in the error path.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Manuel Lauss and committed by
Mark Brown
efd9eb96 1bc80798

+1
+1
sound/soc/au1x/dbdma2.c
··· 480 if (!ret) 481 return pd; 482 483 out: 484 kfree(res); 485 return NULL;
··· 480 if (!ret) 481 return pd; 482 483 + platform_device_put(pd); 484 out: 485 kfree(res); 486 return NULL;