History

ARM: Fix refcount leak in axxia_boot_secondary

of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak.

Miaoqian Lin committed 4 years ago

Commit 7c7ff681 parent 89931cb1 file · +1 −0Browse files

Unified · Split

arch/arm/mach-axxia/platsmp.c+1−0
@@ -39,6 +39,7 @@ static int axxia_boot_secondary(unsigned int cpu, struct task_struct *idle) · 38 unmodified lines
39 return -ENOENT;39 return -ENOENT;
40 40
41 syscon = of_iomap(syscon_np, 0);41 syscon = of_iomap(syscon_np, 0);
42 of_node_put(syscon_np);
42 if (!syscon)43 if (!syscon)
43 return -ENOMEM;44 return -ENOMEM;
44 45

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t