Re: [PATCH 2/4] ARM: mvebu: fix a leaked reference by adding missing of_node_put

2019-04-21 Thread Gregory CLEMENT
Hi Wen Yang, > The call to of_get_next_child returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: > ./arch/arm/mach-mvebu/pm-board.c:135:2-8: ERROR: missing of_node_put; > acquired

[PATCH 2/4] ARM: mvebu: fix a leaked reference by adding missing of_node_put

2019-03-05 Thread Wen Yang
The call to of_get_next_child returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./arch/arm/mach-mvebu/pm-board.c:135:2-8: ERROR: missing of_node_put; acquired a node pointer with refcou