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:
617fcc9
)
arm: mach-omap2: voltage: debugfs: fix memory leak
author
Aaro Koskinen
<aaro.koskinen@nokia.com>
Fri, 28 Jan 2011 16:24:11 +0000
(18:24 +0200)
committer
Kevin Hilman
<khilman@ti.com>
Mon, 31 Jan 2011 20:59:14 +0000
(12:59 -0800)
The temporary string holding the directory name to be created should
be released.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/voltage.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/voltage.c
b/arch/arm/mach-omap2/voltage.c
index
ed6079c
..
12be525
100644
(file)
--- a/
arch/arm/mach-omap2/voltage.c
+++ b/
arch/arm/mach-omap2/voltage.c
@@
-471,6
+471,7
@@
static void __init vdd_debugfs_init(struct omap_vdd_info *vdd)
strcat(name, vdd->voltdm.name);
vdd->debug_dir = debugfs_create_dir(name, voltage_dir);
+ kfree(name);
if (IS_ERR(vdd->debug_dir)) {
pr_warning("%s: Unable to create debugfs directory for"
" vdd_%s\n", __func__, vdd->voltdm.name);