From 73f3f1382501a260a88801e3322ae6f3cf45c2fe Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Thu, 25 Feb 2016 12:18:25 -0800 Subject: clk: shmobile: Free 'clock' on error path We forgot to free this clock when we return early in this code. Cc: Geert Uytterhoeven Signed-off-by: Stephen Boyd --- drivers/clk/shmobile/renesas-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/shmobile/renesas-cpg-mssr.c b/drivers/clk/shmobile/renesas-cpg-mssr.c index 925b600..58e24b3 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 } -- cgit v1.1