summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWan Jiabing <wanjiabing@vivo.com>2021-10-15 03:01:22 -0400
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-10-18 18:12:57 +0200
commit169dd5f08a8ce7eff11293bb53b2c6160fc176c1 (patch)
treecbaf658d3dedb833dc97dcdbd84dbb550a1a27bc /arch
parent4beaeb5f11f31615752024a86d4654e3568addf8 (diff)
downloadlinux-stable-169dd5f08a8ce7eff11293bb53b2c6160fc176c1.tar.gz
linux-stable-169dd5f08a8ce7eff11293bb53b2c6160fc176c1.tar.bz2
linux-stable-169dd5f08a8ce7eff11293bb53b2c6160fc176c1.zip
MIPS: Loongson64: Add of_node_put() before break
Fix following coccicheck warning: ./arch/mips/loongson64/init.c:174:1-22: WARNING: Function for_each_node_by_name should have of_node_put() before break Early exits from for_each_node_by_name should decrement the node reference counter. Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Reviewed-by: Huacai Chen <chenhuacai@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/loongson64/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/loongson64/init.c b/arch/mips/loongson64/init.c
index 76e0a9636a0e..f03fc52ed1d6 100644
--- a/arch/mips/loongson64/init.c
+++ b/arch/mips/loongson64/init.c
@@ -177,6 +177,7 @@ static __init void reserve_pio_range(void)
if (of_range_parser_init(&parser, np)) {
pr_info("Failed to parse resources.\n");
+ of_node_put(np);
break;
}