'setup_find_cpu_node()' take a reference on the node it returns.
This reference must be decremented when not needed anymore, or there will
be a leak.
Add the missing 'of_node_put(cpu)'.
Note that 'setup_cpuinfo()' that also calls this function already has a
correct 'of_node_put(cpu)' at its end.
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| asm-offsets.c | ||
| dma.c | ||
| entry.S | ||
| head.S | ||
| irq.c | ||
| Makefile | ||
| module.c | ||
| or32_ksyms.c | ||
| process.c | ||
| prom.c | ||
| ptrace.c | ||
| setup.c | ||
| signal.c | ||
| smp.c | ||
| stacktrace.c | ||
| sync-timer.c | ||
| sys_call_table.c | ||
| time.c | ||
| traps.c | ||
| unwinder.c | ||
| vmlinux.h | ||
| vmlinux.lds.S | ||