From: Liang He Date: Thu, 16 Jun 2022 13:29:22 +0000 (+0800) Subject: powerpc/85xx: Add missing of_node_put() in ksi8560.c X-Git-Tag: baikal/mips/sdk6.1~4676^2~182 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=f8466ed764708337503ae27fcac2804812211125;p=kernel.git powerpc/85xx: Add missing of_node_put() in ksi8560.c In ksi8560_setup_arch(), 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 Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220616132922.3987053-1-windhl@126.com --- diff --git a/arch/powerpc/platforms/85xx/ksi8560.c b/arch/powerpc/platforms/85xx/ksi8560.c index bdf9d42f8521d..a22f02b0fc77c 100644 --- a/arch/powerpc/platforms/85xx/ksi8560.c +++ b/arch/powerpc/platforms/85xx/ksi8560.c @@ -133,6 +133,8 @@ static void __init ksi8560_setup_arch(void) else printk(KERN_ERR "Can't find CPLD in device tree\n"); + of_node_put(cpld); + if (ppc_md.progress) ppc_md.progress("ksi8560_setup_arch()", 0);