projects
/
wrapfs-5.17.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f085cfa
)
powerpc/xics: fix refcount leak in icp_opal_init()
author
Lv Ruyi
<lv.ruyi@zte.com.cn>
Sat, 2 Apr 2022 01:34:19 +0000
(
01:34
+0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:25:35 +0000
(10:25 +0200)
[ Upstream commit
5dd9e27ea4a39f7edd4bf81e9e70208e7ac0b7c9
]
The of_find_compatible_node() function returns a 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/20220402013419.2410298-1-lv.ruyi@zte.com.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/sysdev/xics/icp-opal.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/xics/icp-opal.c
b/arch/powerpc/sysdev/xics/icp-opal.c
index bda4c32582d973c21bde4fc41f4c2ea2f79917de..4dae624b9f2f4bb50ab9392a32b47122a108662a 100644
(file)
--- a/
arch/powerpc/sysdev/xics/icp-opal.c
+++ b/
arch/powerpc/sysdev/xics/icp-opal.c
@@
-196,6
+196,7
@@
int __init icp_opal_init(void)
printk("XICS: Using OPAL ICP fallbacks\n");
+ of_node_put(np);
return 0;
}