diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-08-25 04:59:11 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-08-25 09:20:15 -0400 |
commit | 014a27553a804c24a213d11aee30470b0a83f341 (patch) | |
tree | b5b5f5eed32161771953c0ac0e17c737c7c83d51 /sound/soc/pxa/pxa-ssp.c | |
parent | d89ccac5a242a6547bcb8073f1ff65bdfa042266 (diff) |
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>
Diffstat (limited to 'sound/soc/pxa/pxa-ssp.c')
-rw-r--r-- | sound/soc/pxa/pxa-ssp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index 8dfbcda956ff..b439eee462cb 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -758,6 +758,7 @@ static int pxa_ssp_remove(struct snd_soc_dai *dai) | |||
758 | struct ssp_priv *priv = snd_soc_dai_get_drvdata(dai); | 758 | struct ssp_priv *priv = snd_soc_dai_get_drvdata(dai); |
759 | 759 | ||
760 | pxa_ssp_free(priv->ssp); | 760 | pxa_ssp_free(priv->ssp); |
761 | kfree(priv); | ||
761 | return 0; | 762 | return 0; |
762 | } | 763 | } |
763 | 764 | ||