On Wed, 29 May 2024 14:36:26 +0100, James Clark wrote:
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.
[...]
Applied, thanks!
[1/1] coresight: Fix ref leak when of_coresight_parse_endpoint() fails https://git.kernel.org/coresight/c/7fcb9cb2fe47294e16067c3cfd25332c8662a115
Best regards,