Skip to content

Commit c9f1efa

Browse files
javiercarrascocruzchleroy
authored andcommitted
soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting()
of_find_compatible_node() requires a call to of_node_put() when the pointer to the node is not required anymore to decrement its refcount and avoid leaking memory. Add the missing call to of_node_put() after the node has been used. Cc: [email protected] Fixes: e95f287 ("soc: fsl: handle RCPM errata A-008646 on SoC LS1021A") Signed-off-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christophe Leroy <[email protected]>
1 parent 844d098 commit c9f1efa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/soc/fsl/rcpm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ static void copy_ippdexpcr1_setting(u32 val)
3636
return;
3737

3838
regs = of_iomap(np, 0);
39+
of_node_put(np);
3940
if (!regs)
4041
return;
4142

0 commit comments

Comments
 (0)