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

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
...@@ -758,6 +758,7 @@ static int pxa_ssp_remove(struct snd_soc_dai *dai) ...@@ -758,6 +758,7 @@ static int pxa_ssp_remove(struct snd_soc_dai *dai)
struct ssp_priv *priv = snd_soc_dai_get_drvdata(dai); struct ssp_priv *priv = snd_soc_dai_get_drvdata(dai);
pxa_ssp_free(priv->ssp); pxa_ssp_free(priv->ssp);
kfree(priv);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment