diff options
author | Krzysztof Kozlowski <[email protected]> | 2024-08-20 11:40:22 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2024-08-20 21:46:43 +0200 |
commit | a309320ddbac6b1583224fcb6bacd424bcf8637f (patch) | |
tree | 8e32b2b8903a591453f95df3668676109bb8ba44 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 5bb33212b5c664396e5de4cd5a2999abb84a3978 (diff) |
cpuidle: riscv-sbi: Use scoped device node handling to fix missing of_node_put
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: All applicable <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions