]> Git Repo - linux.git/commitdiff
[ARM] twl4030 - leak fix
authorAlan Cox <[email protected]>
Mon, 23 Mar 2009 10:43:54 +0000 (10:43 +0000)
committerRussell King <[email protected]>
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 <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/mach-omap2/mmc-twl4030.c

index 437f52073f6ef3f6d4ad93f36c417315fb0ded7e..e1dadf7344a1e684b6ea57f4fe4610b1a4ac693d 100644 (file)
@@ -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;
This page took 0.073388 seconds and 4 git commands to generate.