(subset) [PATCH] backlight: lm3509_bl: Fix early returns in for_each_child_of_node()

Lee Jones lee at kernel.org
Wed Jun 26 15:50:07 UTC 2024


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 [李琼斯]



More information about the dri-devel mailing list