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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 47d0fbd commit e7296d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)