]> git.baikalelectronics.ru Git - kernel.git/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)
commite4ca97eff9b15af014cfc3e9e2af5c922c09136e
tree327e97947e47814ced4c434fb1ae3d9cdc2b96db
parent75a3c3772f3519c450c98ca8be5834a9224d500d
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