summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorYuho Choi <dbgh9129@gmail.com>2026-06-15 16:05:40 -0400
committerKevin Hilman (TI) <khilman@baylibre.com>2026-07-06 11:42:48 -0700
commit6342de0aed216b6df460b492ddb532b3e0ed16f1 (patch)
tree7d7ed5754c4a2e844ad7a11cdbe1bb9095fb0235 /tools/perf/scripts/python/bin/stackcollapse-report
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff)
bus: ti-sysc: Fix /chosen node reference leak
sysc_init_stdout_path() gets the /chosen node with of_find_node_by_path() to read stdout-path. The function then overwrites the local node pointer with the stdout-path lookup result, or exits on error, without dropping the /chosen reference. Keep the /chosen node in a separate variable and put it after the stdout-path value has been used for the lookup. The successful stdout node lookup remains referenced by the cached stdout_path pointer. Fixes: 3bb37c8e6e6a ("bus: ti-sysc: Handle stdout-path for debug console") Signed-off-by: Yuho Choi <dbgh9129@gmail.com> Reviewed-by: Andreas Kemnade <andreas@kemnade.info> Link: https://patch.msgid.link/20260615200540.770205-1-dbgh9129@gmail.com Signed-off-by: Kevin Hilman (TI) <khilman@baylibre.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions