diff options
author | Aaro Koskinen <Aaro.Koskinen@nokia.com> | 2011-01-28 09:50:55 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-01 18:51:36 -0500 |
commit | 9d47e309015b8d5ab32851cd0216e4b96b6407e4 (patch) | |
tree | 6daf4139f5b0dcba56daa51c7857e65f18e165f5 /arch | |
parent | 713f25cec6331fca414aefb2ab5b20d88c610a2f (diff) |
arm: mach-omap2: mux: free allocated memory on error exit
Free allocated memory on error exit.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/mux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index fae49d12bc76..98148b6c36e9 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -1000,6 +1000,7 @@ int __init omap_mux_init(const char *name, u32 flags, | |||
1000 | if (!partition->base) { | 1000 | if (!partition->base) { |
1001 | pr_err("%s: Could not ioremap mux partition at 0x%08x\n", | 1001 | pr_err("%s: Could not ioremap mux partition at 0x%08x\n", |
1002 | __func__, partition->phys); | 1002 | __func__, partition->phys); |
1003 | kfree(partition); | ||
1003 | return -ENODEV; | 1004 | return -ENODEV; |
1004 | } | 1005 | } |
1005 | 1006 | ||