]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powermac/udbg_scc: Add missing of_node_put()s in udbg_scc_init()
authorLiang He <windhl@126.com>
Sat, 16 Jul 2022 07:43:44 +0000 (15:43 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:30 +0000 (17:30 +1000)
commit838121928d1200b6bcb89b3b62ccd204fd15abfa
treee619b72cebe2a194df606dca584eb5b124b12dc4
parent04c8470b481adc5b89c3e4a5c5f34e10241ba3d1
powerpc/powermac/udbg_scc: Add missing of_node_put()s in udbg_scc_init()

During the iteration of for_each_child_of_node(), we need to call
of_node_put() for the old references stored in to 'ch_def' and 'ch_a'
as their refcounters have been increased in last iteration.

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