summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/cpu.c
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2018-11-20 15:07:50 -0800
committerPalmer Dabbelt <palmer@sifive.com>2018-12-21 08:10:49 -0800
commit94f9bf118f1e294b3f2092f8bde02860f5e3ea3f (patch)
tree826070e27c2602f32ca179715c15a25312cda16b /arch/riscv/kernel/cpu.c
parent8b699616f399b58071cda41e5a1125d8480ac982 (diff)
downloadlinux-next-94f9bf118f1e294b3f2092f8bde02860f5e3ea3f.tar.gz
RISC-V: Fix of_node_* refcount
Fix of_node* refcount at various places by using of_node_put. Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/kernel/cpu.c')
-rw-r--r--arch/riscv/kernel/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c
index b4a7d4427fbb..f8fa2c63aa89 100644
--- a/arch/riscv/kernel/cpu.c
+++ b/arch/riscv/kernel/cpu.c
@@ -158,6 +158,7 @@ static int c_show(struct seq_file *m, void *v)
&& strcmp(compat, "riscv"))
seq_printf(m, "uarch\t\t: %s\n", compat);
seq_puts(m, "\n");
+ of_node_put(node);
return 0;
}