diff options
author | Bosi Zhang <[email protected]> | 2023-04-22 08:43:31 +0000 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-06-12 18:28:33 -0700 |
commit | 3db7285e044144fd88a356f5b641b9cd4b231a77 (patch) | |
tree | ef9e3a4756f02c7ea660f44e5514f8b4d6f36ddb /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | 18eb864f1a2df1956a2829edd58d5d9e9e73bc19 (diff) |
clk: mediatek: fix of_iomap memory leak
Smatch reports:
drivers/clk/mediatek/clk-mtk.c:583 mtk_clk_simple_probe() warn:
'base' from of_iomap() not released on lines: 496.
This problem was also found in linux-next. In mtk_clk_simple_probe(),
base is not released when handling errors
if clk_data is not existed, which may cause a leak.
So free_base should be added here to release base.
Fixes: c58cd0e40ffa ("clk: mediatek: Add mtk_clk_simple_probe() to simplify clock providers")
Signed-off-by: Bosi Zhang <[email protected]>
Reviewed-by: Dongliang Mu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions