]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/pseries: Add missing of_node_put()s in hotplug-cpu.c
authorLiang He <windhl@126.com>
Tue, 21 Jun 2022 11:17:01 +0000 (19:17 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:24 +0000 (17:30 +1000)
commit6ec4836fa15a0ff02e3a382ad6b1920c728a8c95
treea4ebdcbfe09f7ad829707686123f7fc5a37a9e51
parentd208d8c2cde513b94ae3b8b97663656079004555
powerpc/pseries: Add missing of_node_put()s in hotplug-cpu.c

In pseries_cpuhp_cache_use_count() and pseries_cpuhp_detach_nodes(),
we need carefully hold the reference returned by
of_find_next_cache_node() and use it to call of_node_put() to keep
refcount balance.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220621111701.4082889-1-windhl@126.com
arch/powerpc/platforms/pseries/hotplug-cpu.c