projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc21ed2
)
powerpc/powernv: fix missing of_node_put in uv_init()
author
Lv Ruyi
<lv.ruyi@zte.com.cn>
Thu, 7 Apr 2022 09:00:43 +0000
(09:00 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:30 +0000
(15:58 +1000)
of_find_compatible_node() returns node pointer with refcount incremented,
use of_node_put() on it when done.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20220407090043.2491854-1-lv.ruyi@zte.com.cn
arch/powerpc/platforms/powernv/ultravisor.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/powernv/ultravisor.c
b/arch/powerpc/platforms/powernv/ultravisor.c
index e4a00ad06f9d3fe6ab8239a90cc27e480381bd46..67c8c4b2d8b17c3662507121e97f48587d3ef82b 100644
(file)
--- 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;