forked from Minki/linux
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: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
d89ccac5a2
commit
014a27553a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user