diff options
author | Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> | 2021-08-18 12:29:28 +0530 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-08-28 21:26:12 -0700 |
commit | e7296d16ef7be11a6001be9bd89906ef55ab2405 (patch) | |
tree | 1cc11298c6f487c0254acf3fbd50668e67604c03 | |
parent | 47d0fbd1cd42d5458c05a7244f7fa3384557b6cc (diff) |
clk: zynqmp: Fix a memory leak
Fix a memory leak of mux.
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20210818065929.12835-3-shubhrajyoti.datta@xilinx.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/zynqmp/clk-mux-zynqmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/zynqmp/clk-mux-zynqmp.c b/drivers/clk/zynqmp/clk-mux-zynqmp.c index 157d4a960bf4..17afce594f28 100644 --- a/drivers/clk/zynqmp/clk-mux-zynqmp.c +++ b/drivers/clk/zynqmp/clk-mux-zynqmp.c @@ -159,7 +159,7 @@ struct clk_hw *zynqmp_clk_register_mux(const char *name, u32 clk_id, hw = &mux->hw; ret = clk_hw_register(NULL, hw); if (ret) { - kfree(hw); + kfree(mux); hw = ERR_PTR(ret); } |