[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220407090043.2491854-1-lv.ruyi@zte.com.cn>
Date: Thu, 7 Apr 2022 09:00:43 +0000
From: cgel.zte@...il.com
To: mpe@...erman.id.au, benh@...nel.crashing.org
Cc: paulus@...ba.org, lv.ruyi@....com.cn,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] powerpc/powernv: fix missing of_node_put in uv_init()
From: Lv Ruyi <lv.ruyi@....com.cn>
of_find_compatible_node() returns node pointer with refcount incremented,
use of_node_put() on it when done.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@....com.cn>
---
arch/powerpc/platforms/powernv/ultravisor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/platforms/powernv/ultravisor.c b/arch/powerpc/platforms/powernv/ultravisor.c
index e4a00ad06f9d..67c8c4b2d8b1 100644
--- a/arch/powerpc/platforms/powernv/ultravisor.c
+++ b/arch/powerpc/platforms/powernv/ultravisor.c
@@ -55,6 +55,7 @@ static int __init uv_init(void)
return -ENODEV;
uv_memcons = memcons_init(node, "memcons");
+ of_node_put(node);
if (!uv_memcons)
return -ENOENT;
--
2.25.1
Powered by blists - more mailing lists