OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b23c7a4
)
[ARM] twl4030 - leak fix
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Mon, 23 Mar 2009 10:43:54 +0000
(10:43 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 24 Mar 2009 22:52:28 +0000
(22:52 +0000)
Trivial error path leak fix. Problem found by Daniel Marjamäki using
cppcheck
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/mmc-twl4030.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/mmc-twl4030.c
b/arch/arm/mach-omap2/mmc-twl4030.c
index
437f520
..
e1dadf7
100644
(file)
--- a/
arch/arm/mach-omap2/mmc-twl4030.c
+++ b/
arch/arm/mach-omap2/mmc-twl4030.c
@@
-397,6
+397,7
@@
void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
break;
default:
pr_err("MMC%d configuration not supported!\n", c->mmc);
+ kfree(mmc);
continue;
}
hsmmc_data[c->mmc - 1] = mmc;