[PATCH] coresight: Fix ref leak when of_coresight_parse_endpoint() fails
Suzuki K Poulose
suzuki.poulose at arm.com
Mon Jun 10 02:47:31 PDT 2024
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,
--
Suzuki K Poulose <suzuki.poulose at arm.com>
More information about the linux-arm-kernel
mailing list