Skip to content

Commit 169dd5f

Browse files
Wan Jiabingtsbogend
authored andcommitted
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 <[email protected]> Reviewed-by: Huacai Chen <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 4beaeb5 commit 169dd5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/loongson64/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ static __init void reserve_pio_range(void)
177177

178178
if (of_range_parser_init(&parser, np)) {
179179
pr_info("Failed to parse resources.\n");
180+
of_node_put(np);
180181
break;
181182
}
182183

0 commit comments

Comments
 (0)