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

Commit 014a2755 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: pxa-ssp: fix a memory leak in pxa_ssp_remove()



The "priv" allocated in pxa_ssp_probe() should be kfreed in pxa_ssp_remove().

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d89ccac5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -758,6 +758,7 @@ static int pxa_ssp_remove(struct snd_soc_dai *dai)
	struct ssp_priv *priv = snd_soc_dai_get_drvdata(dai);

	pxa_ssp_free(priv->ssp);
	kfree(priv);
	return 0;
}