Skip to content

Commit d3e669f

Browse files
Nicholas Mc Guirempe
authored andcommitted
powerpc/icp-hv: Fix missing of_node_put() in success path
Both of_find_compatible_node() and of_find_node_by_type() will return a refcounted node on success - thus for the success path the node must be explicitly released with a of_node_put(). Fixes: 0b05ac6 ("powerpc/xics: Rewrite XICS driver") Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1530691407-3991-1-git-send-email-hofrat@osadl.org
1 parent 67c3e59 commit d3e669f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/powerpc/sysdev/xics/icp-hv.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ int icp_hv_init(void)
174174

175175
icp_ops = &icp_hv_ops;
176176

177+
of_node_put(np);
177178
return 0;
178179
}
179180

0 commit comments

Comments
 (0)