]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powermac/pfunc_base: Add missing of_node_put() in macio_gpio_init_one()
authorLiang He <windhl@126.com>
Sat, 16 Jul 2022 07:31:11 +0000 (15:31 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:29 +0000 (17:30 +1000)
commit04c8470b481adc5b89c3e4a5c5f34e10241ba3d1
tree3fb32f077006db47cba24fc5b126b8d6fd9312e1
parent78f198df6a6de0160b4e9c894a70f7c4602674e3
powerpc/powermac/pfunc_base: Add missing of_node_put() in macio_gpio_init_one()

Call of_node_put() for the reference 'gparent' escaped out of the
previous for_each_child_of_node() as it has increased the refcount.

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