]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/85xx: Add missing of_node_put() in sgy_cst1000
authorLiang He <windhl@126.com>
Fri, 17 Jun 2022 10:50:11 +0000 (18:50 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:28:25 +0000 (17:28 +1000)
commit14b9e26c6c9a845c005087b9653459623a7d029b
tree869b804e17cbf40ee286847ab5aa44a837182f71
parent593d7b89c6a2bf7aea2324c94f10ef3c21308418
powerpc/85xx: Add missing of_node_put() in sgy_cst1000

In gpio_halt_probe(), of_find_matching_node() will return a node
pointer with refcount incremented. The reference should be dropped with
of_node_put() in the failure path.

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