Skip to content

Commit 415a554

Browse files
committed
Merge: Fix refcount leak in powerpc xics
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6504 Description: Fix refcount leak in powerpc xics JIRA: https://issues.redhat.com/browse/RHEL-80861 CVE: CVE-2022-49432 Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=66857305 Tested: Verified Brew build test kernel RPMs Signed-off-by: Mamatha Inamdar <[email protected]> commit 5dd9e27 Author: Lv Ruyi <[email protected]> Date: Sat Apr 2 01:34:19 2022 +0000 powerpc/xics: fix refcount leak in icp_opal_init() 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 <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mamatha Inamdar <[email protected]> Approved-by: Steve Best <[email protected]> Approved-by: Tony Camuso <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Augusto Caringi <[email protected]>
2 parents 1ffd84b + 42a1b21 commit 415a554

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/sysdev/xics/icp-opal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ int icp_opal_init(void)
196196

197197
printk("XICS: Using OPAL ICP fallbacks\n");
198198

199+
of_node_put(np);
199200
return 0;
200201
}
201202

0 commit comments

Comments
 (0)