summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-02-25 12:18:25 -0800
committerStephen Boyd <sboyd@codeaurora.org>2016-02-25 12:25:31 -0800
commit73f3f1382501a260a88801e3322ae6f3cf45c2fe (patch)
treeb9d52b131d86011a45b9a37ddc52a432ee28eb8e
parentc7f23180c6025fc93d1b743a49a97c4bb0c26f19 (diff)
downloadlinux-73f3f1382501a260a88801e3322ae6f3cf45c2fe.tar.bz2
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: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r--drivers/clk/shmobile/renesas-cpg-mssr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/shmobile/renesas-cpg-mssr.c b/drivers/clk/shmobile/renesas-cpg-mssr.c
index 925b6007e531..58e24b326a48 100644
--- a/drivers/clk/shmobile/renesas-cpg-mssr.c
+++ b/drivers/clk/shmobile/renesas-cpg-mssr.c
@@ -348,6 +348,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
#else
dev_dbg(dev, "Ignoring MSTP %s to prevent disabling\n",
mod->name);
+ kfree(clock);
return;
#endif
}