projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc8079
)
ASoC: au1x: dbdma2: plug memleak in pcm device creation error path
author
Manuel Lauss
<manuel.lauss@googlemail.com>
Tue, 1 Dec 2009 17:10:35 +0000
(18:10 +0100)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 3 Dec 2009 10:49:55 +0000
(10:49 +0000)
free the allocated pcm platform device in the error path.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/au1x/dbdma2.c
patch
|
blob
|
history
diff --git
a/sound/soc/au1x/dbdma2.c
b/sound/soc/au1x/dbdma2.c
index
2ca33b0
..
19e4d37
100644
(file)
--- a/
sound/soc/au1x/dbdma2.c
+++ b/
sound/soc/au1x/dbdma2.c
@@
-480,6
+480,7
@@
struct platform_device *au1xpsc_pcm_add(struct platform_device *pdev)
if (!ret)
return pd;
+ platform_device_put(pd);
out:
kfree(res);
return NULL;