Skip to content
Commit 8c6239f6 authored by Zhang Qilong's avatar Zhang Qilong Committed by Stephen Boyd
Browse files

clk: ti: Fix memleak in ti_fapll_synth_setup



If clk_register fails, we should goto free branch
before function returns to prevent memleak.

Fixes: 163152cb ("clk: ti: Add support for FAPLL on dm816x")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201113131623.2098222-1-zhangqilong3@huawei.com


Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 3650b228
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment