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 | 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 | ||