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 480 if (!ret) 481 481 return pd; 482 482 483 + platform_device_put(pd); 483 484 out: 484 485 kfree(res); 485 486 return NULL;