]> git.itanic.dy.fi Git - linux-stable/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)
commitcc0dd82c18559184e009bef8d0353d008013a813
tree804e242e63307ab68f0b2ef83494080bda9b566f
parenta3a4c10aef88a80ba1b230a7bf63ea381cc5116e
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