]> git.baikalelectronics.ru Git - kernel.git/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)
commit657a99c9dbc24ef7f093eccadb7aef42f4b717c8
treea4ebdcbfe09f7ad829707686123f7fc5a37a9e51
parent9ef69ec2f570052ae880762d12efedd71bc7dff8
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