]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/maple: Add missing of_node_put() in time.c
authorLiang He <windhl@126.com>
Fri, 17 Jun 2022 12:40:45 +0000 (20:40 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:28:25 +0000 (17:28 +1000)
commit75a3c3772f3519c450c98ca8be5834a9224d500d
tree79081074713583de59ce2b4c1035a6b0b65a63bf
parent97fc8211e6268c40336b705e357587436f9f2768
powerpc/maple: Add missing of_node_put() in time.c

In maple_get_boot_time(), of_find_compatible_node() 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/20220617124045.4048757-1-windhl@126.com
arch/powerpc/platforms/maple/time.c