From: Alan Cox Date: Mon, 23 Mar 2009 10:43:54 +0000 (+0000) Subject: [ARM] twl4030 - leak fix X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=803c78e4da28d7d7cb0642caf643b9289ae7838a;p=linux-2.6-omap-h63xx.git [ARM] twl4030 - leak fix Trivial error path leak fix. Problem found by Daniel Marjamäki using cppcheck Signed-off-by: Alan Cox Acked-by: Tony Lindgren Signed-off-by: Russell King --- diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 437f52073f6..e1dadf7344a 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) break; default: pr_err("MMC%d configuration not supported!\n", c->mmc); + kfree(mmc); continue; } hsmmc_data[c->mmc - 1] = mmc;