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:
59e2102
)
ASoC: nuc900-ac97: fix a memory leak
author
Axel Lin
<
[email protected]
>
Wed, 24 Nov 2010 08:44:23 +0000
(16:44 +0800)
committer
Mark Brown
<
[email protected]
>
Wed, 24 Nov 2010 11:31:18 +0000
(11:31 +0000)
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
Acked-by: Wan ZongShun <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/nuc900/nuc900-ac97.c
patch
|
blob
|
history
diff --git
a/sound/soc/nuc900/nuc900-ac97.c
b/sound/soc/nuc900/nuc900-ac97.c
index 293dc748797c51cf11a63b6b0afa548521ff2898..e00e39dd65761911b42295a6e2ef857758db3b61 100644
(file)
--- a/
sound/soc/nuc900/nuc900-ac97.c
+++ b/
sound/soc/nuc900/nuc900-ac97.c
@@
-384,7
+384,6
@@
out0:
static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev)
{
-
snd_soc_unregister_dai(&pdev->dev);
clk_put(nuc900_ac97_data->clk);
@@
-392,6
+391,7
@@
static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev)
release_mem_region(nuc900_ac97_data->res->start,
resource_size(nuc900_ac97_data->res));
+ kfree(nuc900_ac97_data);
nuc900_ac97_data = NULL;
return 0;