]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/512x: Add missing of_node_put() in clock-commonclk.c
authorLiang He <windhl@126.com>
Tue, 21 Jun 2022 08:03:49 +0000 (16:03 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:24 +0000 (17:30 +1000)
commit923a9f766990a7301833595f745456ad4d2e445c
tree804e242e63307ab68f0b2ef83494080bda9b566f
parent7bd6a5e3fa852ab9ac55c262d51c335a2ae1c7ed
powerpc/512x: Add missing of_node_put() in clock-commonclk.c

In mpc5121_clk_provide_migration_support(), hold the reference returned
by of_find_compatible_node() and use it to call of_node_put() for 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/20220621080349.4081689-1-windhl@126.com
arch/powerpc/platforms/512x/clock-commonclk.c