diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2009-03-23 06:43:54 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-24 18:52:28 -0400 |
commit | 803c78e4da28d7d7cb0642caf643b9289ae7838a (patch) | |
tree | cace549c9dbac4c67a16e3bf6fb217a11fdb10a0 /arch/arm | |
parent | b23c7a427e4b3764ad686a46de89ab652811c50a (diff) |
[ARM] twl4030 - leak fix
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/mmc-twl4030.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 437f52073f6e..e1dadf7344a1 100644 --- 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) | |||
397 | break; | 397 | break; |
398 | default: | 398 | default: |
399 | pr_err("MMC%d configuration not supported!\n", c->mmc); | 399 | pr_err("MMC%d configuration not supported!\n", c->mmc); |
400 | kfree(mmc); | ||
400 | continue; | 401 | continue; |
401 | } | 402 | } |
402 | hsmmc_data[c->mmc - 1] = mmc; | 403 | hsmmc_data[c->mmc - 1] = mmc; |