]> git.baikalelectronics.ru Git - kernel.git/commit
perf: RISC-V: Add of_node_put() when breaking out of for_each_of_cpu_node()
authorLiang He <windhl@126.com>
Fri, 15 Jul 2022 13:03:30 +0000 (21:03 +0800)
committerWill Deacon <will@kernel.org>
Tue, 19 Jul 2022 17:40:31 +0000 (18:40 +0100)
commited169e546874fce0282f6453037d2e7d5424c3af
tree9f129b3122c594259183f357722b81073316cef6
parent96daa30dfa2bfc681c2fd363f1e72288461c9187
perf: RISC-V: Add of_node_put() when breaking out of for_each_of_cpu_node()

In pmu_sbi_setup_irqs(), we should call of_node_put() for the 'cpu'
when breaking out of for_each_of_cput_node() as its refcount will
be automatically increased and decreased during the iteration.

Fixes: 20dfcae6ffdd ("RISC-V: Add sscofpmf extension support")
Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20220715130330.443363-1-windhl@126.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/riscv_pmu_sbi.c