]> git.itanic.dy.fi Git - linux-stable/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)
commit23b1481898ee8704394cead67eae2634003f7ca8
tree79081074713583de59ce2b4c1035a6b0b65a63bf
parent14b9e26c6c9a845c005087b9653459623a7d029b
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