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.
Unified · Split
| @@ -39,6 +39,7 @@ static int axxia_boot_secondary(unsigned int cpu, struct task_struct *idle) · 38 unmodified lines | ||
| 39 | 39 | return -ENOENT; |
| 40 | 40 | |
| 41 | 41 | syscon = of_iomap(syscon_np, 0); |
| 42 | + of_node_put(syscon_np); | |
| 42 | 43 | if (!syscon) |
| 43 | 44 | return -ENOMEM; |
| 44 | 45 | |