Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d47e309 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Tony Lindgren
Browse files

arm: mach-omap2: mux: free allocated memory on error exit



Free allocated memory on error exit.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 713f25ce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1000,6 +1000,7 @@ int __init omap_mux_init(const char *name, u32 flags,
	if (!partition->base) {
		pr_err("%s: Could not ioremap mux partition at 0x%08x\n",
			__func__, partition->phys);
		kfree(partition);
		return -ENODEV;
	}