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 <minamdar@redhat.com> commit 5dd9e27 Author: Lv Ruyi <lv.ruyi@zte.com.cn> 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 <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: Mamatha Inamdar <minamdar@redhat.com> Approved-by: Steve Best <sbest@redhat.com> Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
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)