mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue