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

Rafael J. Wysocki rafael at kernel.org
Tue Aug 20 12:49:21 PDT 2024


On Tue, Aug 20, 2024 at 12:57 PM Anup Patel <anup at brainfault.org> wrote:
>
> On Tue, Aug 20, 2024 at 3:10 PM Krzysztof Kozlowski
> <krzysztof.kozlowski at linaro.org> 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 at vger.kernel.org>
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
>
> LGTM.
>
> Reviewed-by: Anup Patel <anup at brainfault.org>

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



More information about the linux-riscv mailing list