]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/8xx: Add missing of_node_put() in tqm8xx_setup.c
authorLiang He <windhl@126.com>
Sat, 18 Jun 2022 02:49:30 +0000 (10:49 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:28:25 +0000 (17:28 +1000)
commitedc17890ae8ee475b566079bea2e9ba83fec021d
tree327e97947e47814ced4c434fb1ae3d9cdc2b96db
parent23b1481898ee8704394cead67eae2634003f7ca8
powerpc/8xx: Add missing of_node_put() in tqm8xx_setup.c

In init_ioports(), of_find_node_by_name() will return a node pointer
with refcount incremented. The reference should be dropped with
of_node_put() when it is not used anymore.

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