diff options
| author | James Clark <[email protected]> | 2024-05-29 14:36:26 +0100 |
|---|---|---|
| committer | Suzuki K Poulose <[email protected]> | 2024-06-07 11:30:30 +0100 |
| commit | 7fcb9cb2fe47294e16067c3cfd25332c8662a115 (patch) | |
| tree | 94fc18a644f391fc0162e99f92d6020c0a270980 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | c3f38fa61af77b49866b006939479069cd451173 (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 <[email protected]>
Reported-by: Laurent Pinchart <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions