commit | 36200e4ac59b3e9542669ed26abadc7c41190130 | [log] [tgz] |
---|---|---|
author | Zhang Qilong <[email protected]> | Fri Nov 13 21:16:23 2020 +0800 |
committer | Greg Kroah-Hartman <[email protected]> | Tue Dec 29 13:45:01 2020 +0100 |
tree | de1ea0bc0aec651c81ad7343200e1b9fe935032d | |
parent | c3ae6afec3ad9e734acbdc92a2467a68bbd46cff [diff] |
clk: ti: Fix memleak in ti_fapll_synth_setup [ Upstream commit 8c6239f6e95f583bb763d0228e02d4dd0fb3d492 ] If clk_register fails, we should goto free branch before function returns to prevent memleak. Fixes: 163152cbbe321 ("clk: ti: Add support for FAPLL on dm816x") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zhang Qilong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Sasha Levin <[email protected]>