]> git.itanic.dy.fi Git - linux-stable/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)
commit11373c933db20f8b6fd2cad27712e683ac9785f0
tree3fb32f077006db47cba24fc5b126b8d6fd9312e1
parentb3d6637bcc5d17caec56a76f6e430dcf444ef80e
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