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

Commit efd9eb96 authored by Manuel Lauss's avatar Manuel Lauss Committed by Mark Brown
Browse files

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



free the allocated pcm platform device in the error path.

Signed-off-by: default avatarManuel Lauss <manuel.lauss@gmail.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 1bc80798
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -480,6 +480,7 @@ struct platform_device *au1xpsc_pcm_add(struct platform_device *pdev)
	if (!ret)
		return pd;

	platform_device_put(pd);
out:
	kfree(res);
	return NULL;