Skip to content

Commit e7296d1

Browse files
Shubhrajyoti Dattabebarino
authored andcommitted
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>
1 parent 47d0fbd commit e7296d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/zynqmp/clk-mux-zynqmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct clk_hw *zynqmp_clk_register_mux(const char *name, u32 clk_id,
159159
hw = &mux->hw;
160160
ret = clk_hw_register(NULL, hw);
161161
if (ret) {
162-
kfree(hw);
162+
kfree(mux);
163163
hw = ERR_PTR(ret);
164164
}
165165

0 commit comments

Comments
 (0)