aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLv Ruyi <[email protected]>2022-04-07 09:00:43 +0000
committerMichael Ellerman <[email protected]>2022-05-22 15:58:30 +1000
commit3ffa9fd471f57f365bc54fc87824c530422f64a5 (patch)
tree87b3962545fb5a8a7ef8e0fe370513003a3efa42
parentdc21ed2aef4150fc2fcf58227a4ff24502015c03 (diff)
powerpc/powernv: fix missing of_node_put in uv_init()
of_find_compatible_node() returns node pointer with refcount incremented, use of_node_put() on it when done. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--arch/powerpc/platforms/powernv/ultravisor.c1
1 files changed, 1 insertions, 0 deletions
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;