diff options
author | Lucas Stach <[email protected]> | 2016-08-15 14:58:43 +0200 |
---|---|---|
committer | Rob Herring <[email protected]> | 2016-08-15 11:15:05 -0500 |
commit | 34276bb062b8449b3b0a208c9b848a1a27920075 (patch) | |
tree | 915da4e3ee4627a14ea40e065e2458edf87b20c7 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | fc520f8b4fa35ceb36f0ad031c1a297968788236 (diff) |
of: fix reference counting in of_graph_get_endpoint_by_regs
The called of_graph_get_next_endpoint() already decrements the refcount
of the prev node, so it is wrong to do it again in the calling function.
Use the for_each_endpoint_of_node() helper to interate through the
endpoint OF nodes, which already does the right thing and simplifies
the code a bit.
Fixes: 8ccd0d0ca041
(of: add helper for getting endpoint node of specific identifiers)
Cc: [email protected]
Reported-by: David Jander <[email protected]>
Signed-off-by: Lucas Stach <[email protected]>
Acked-by: Philipp Zabel <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions