summaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-11-25 04:33:14 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-25 12:12:34 +0100
commit8b6b30ab665d3bbb23180c39f6215e6f64516ed0 (patch)
tree048dfb6cf0d0b1ea8395ef8ebc2fc4967ee82b94 /sound/soc/davinci
parentASoC: phycore-ac97: fix resource leak (diff)
downloadlinux-8b6b30ab665d3bbb23180c39f6215e6f64516ed0.tar.xz
linux-8b6b30ab665d3bbb23180c39f6215e6f64516ed0.zip
ASoC: davinci-vcif - fix a memory leak
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/davinci')
-rw-r--r--sound/soc/davinci/davinci-vcif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-vcif.c b/sound/soc/davinci/davinci-vcif.c
index fb4cc1edf339..9d2afccc3a2d 100644
--- a/sound/soc/davinci/davinci-vcif.c
+++ b/sound/soc/davinci/davinci-vcif.c
@@ -247,7 +247,10 @@ fail:
static int davinci_vcif_remove(struct platform_device *pdev)
{
+ struct davinci_vcif_dev *davinci_vcif_dev = dev_get_drvdata(&pdev->dev);
+
snd_soc_unregister_dai(&pdev->dev);
+ kfree(davinci_vcif_dev);
return 0;
}