Commit 73f3f138 authored by Stephen Boyd's avatar Stephen Boyd

clk: shmobile: Free 'clock' on error path

We forgot to free this clock when we return early in this code.

Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent c7f23180
...@@ -348,6 +348,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod, ...@@ -348,6 +348,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
#else #else
dev_dbg(dev, "Ignoring MSTP %s to prevent disabling\n", dev_dbg(dev, "Ignoring MSTP %s to prevent disabling\n",
mod->name); mod->name);
kfree(clock);
return; return;
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment