diff options
author | Xiu Jianfeng <[email protected]> | 2022-11-23 17:12:01 +0800 |
---|---|---|
committer | Heiko Stuebner <[email protected]> | 2022-11-23 14:51:30 +0100 |
commit | 739a6a6bbdb793bd57938cb24aa5a6df89983546 (patch) | |
tree | a7d47e1bd73f225de2acad6534b2d4d6af47fc62 /tools/perf/scripts/python/flamegraph.py | |
parent | f1c506d152ff235ad621d3c25d061cb16da67214 (diff) |
clk: rockchip: Fix memory leak in rockchip_clk_register_pll()
If clk_register() fails, @pll->rate_table may have allocated memory by
kmemdup(), so it needs to be freed, otherwise will cause memory leak
issue, this patch fixes it.
Fixes: 90c590254051 ("clk: rockchip: add clock type for pll clocks and pll used on rk3066")
Signed-off-by: Xiu Jianfeng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiko Stuebner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions