Re: (subset) [PATCH] backlight: lm3509_bl: Fix early returns in for_each_child_of_node()
From: Lee Jones
Date: Wed Jun 26 2024 - 11:50:21 EST
On Mon, 24 Jun 2024 17:30:50 +0200, Javier Carrasco wrote:
> The for_each_child_of_node() macro automatically decrements the child
> refcount at the end of every iteration. On early exits, of_node_put()
> must be used to manually decrement the refcount and avoid memory leaks.
>
> The scoped version of the macro accounts for such early breaks, fixing
> the early exits without the need for explicit calls to of_node_put().
>
> [...]
Applied, thanks!
[1/1] backlight: lm3509_bl: Fix early returns in for_each_child_of_node()
commit: b337cc3ce47549528fc3ee0b8c7ebd33348a3126
--
Lee Jones [李琼斯]