Re: [PATCH] memory: ti-aemif: Drop child node when jumping out loop

2021-01-25 Thread Krzysztof Kozlowski
On Thu, Jan 21, 2021 at 01:03:59AM -0800, Pan Bian wrote: > Call of_node_put() to decrement the reference count of the child node > child_np when jumping out of the loop body of > for_each_available_child_of_node(), which is a macro that increments and > decrements the reference count of child node

[PATCH] memory: ti-aemif: Drop child node when jumping out loop

2021-01-21 Thread Pan Bian
Call of_node_put() to decrement the reference count of the child node child_np when jumping out of the loop body of for_each_available_child_of_node(), which is a macro that increments and decrements the reference count of child node. If the loop is broken, the reference of the child node should be