Re: [PATCH 3/3] thermal: of: Fix OF node leak in of_thermal_zone_find() error paths

From: Rafael J. Wysocki
Date: Thu Aug 22 2024 - 15:05:58 EST


On Thu, Aug 22, 2024 at 6:12 PM Daniel Lezcano
<daniel.lezcano@xxxxxxxxxx> wrote:
>
> On 14/08/2024 21:58, Krzysztof Kozlowski wrote:
> > Terminating for_each_available_child_of_node() loop requires dropping OF
> > node reference, so bailing out on errors misses this. Solve the OF node
> > reference leak with scoped for_each_available_child_of_node_scoped().
> >
> > Fixes: 3fd6d6e2b4e8 ("thermal/of: Rework the thermal device tree initialization")
> > Cc: <stable@xxxxxxxxxxxxxxx>
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
>
> Reviewed-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>

Applied along with the rest of the series as fixes for 6.11-rc, thanks!