]> git.baikalelectronics.ru Git - kernel.git/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)
commit97fc8211e6268c40336b705e357587436f9f2768
tree869b804e17cbf40ee286847ab5aa44a837182f71
parent1fa3fdada378c3f557fb66a899760f09256c6306
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