projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09de953
)
ASoC: davinci-vcif - fix a memory leak
author
Axel Lin
<axel.lin@gmail.com>
Thu, 25 Nov 2010 03:33:14 +0000
(11:33 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 25 Nov 2010 11:12:34 +0000
(11:12 +0000)
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>
sound/soc/davinci/davinci-vcif.c
patch
|
blob
|
history
diff --git
a/sound/soc/davinci/davinci-vcif.c
b/sound/soc/davinci/davinci-vcif.c
index fb4cc1edf339cb4ee8541cf528e002a2cfbae7a6..9d2afccc3a2d645dceb1e263ef7158f4c7667934 100644
(file)
--- 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;
}