Re: [PATCH v2 1/2] cpuidle: riscv-sbi: Use scoped device node handling to fix missing of_node_put

From: Rafael J. Wysocki
Date: Tue Aug 20 2024 - 15:50:32 EST


On Tue, Aug 20, 2024 at 12:57 PM Anup Patel <anup@xxxxxxxxxxxxxx> wrote:
>
> On Tue, Aug 20, 2024 at 3:10 PM Krzysztof Kozlowski
> <krzysztof.kozlowski@xxxxxxxxxx> wrote:
> >
> > Two return statements in sbi_cpuidle_dt_init_states() did not drop the
> > OF node reference count. Solve the issue and simplify entire error
> > handling with scoped/cleanup.h.
> >
> > Fixes: 6abf32f1d9c5 ("cpuidle: Add RISC-V SBI CPU idle driver")
> > Cc: <stable@xxxxxxxxxxxxxxx>
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
>
> LGTM.
>
> Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>

Applied along with the [2/2] as 6.12 material, thanks!