summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJames Clark <james.clark@arm.com>2024-05-29 14:36:26 +0100
committerSuzuki K Poulose <suzuki.poulose@arm.com>2024-06-07 11:30:30 +0100
commit7fcb9cb2fe47294e16067c3cfd25332c8662a115 (patch)
tree94fc18a644f391fc0162e99f92d6020c0a270980 /tools/perf/scripts/python/export-to-postgresql.py
parentc3f38fa61af77b49866b006939479069cd451173 (diff)
coresight: Fix ref leak when of_coresight_parse_endpoint() fails
of_graph_get_next_endpoint() releases the reference to the previous endpoint on each iteration, but when parsing fails the loop exits early meaning the last reference is never dropped. Fix it by dropping the refcount in the exit condition. Fixes: d375b356e687 ("coresight: Fix support for sparsely populated ports") Signed-off-by: James Clark <james.clark@arm.com> Reported-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20240529133626.90080-1-james.clark@arm.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions