summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-10-31 13:43:16 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2024-12-03 10:19:19 +0100
commita6ca7e6240f0651412da6a17d0e7a8f66d3455a6 (patch)
tree3a2c0c72a254c30c7a943df5fc576e911921dca1 /tools/perf/scripts/python/export-to-postgresql.py
parent40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff)
clk: renesas: cpg-mssr: Fix 'soc' node handling in cpg_mssr_reserved_init()
A device_node reference obtained via of_find_node_by_path() requires explicit calls to of_node_put() after it is no longer required to avoid leaking the resource. Instead of adding the missing calls to of_node_put() in all execution paths, use the cleanup attribute for 'soc' by means of the __free() macro, which automatically calls of_node_put() when the variable goes out of scope. Fixes: 6aa175476490 ("clk: renesas: cpg-mssr: Ignore all clocks assigned to non-Linux system") Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20241031-clk-renesas-cpg-mssr-cleanup-v2-1-0010936d1154@gmail.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions