Messages in this thread | | | Date | Mon, 25 Jan 2021 20:20:17 +0100 | From | Krzysztof Kozlowski <> | Subject | Re: [PATCH] memory: ti-aemif: Drop child node when jumping out loop |
| |
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. If the loop is broken, the > reference of the child node should be dropped manually. > > Fixes: 5a7c81547c1d ("memory: ti-aemif: introduce AEMIF driver") > Signed-off-by: Pan Bian <bianpan2016@163.com> > --- > drivers/memory/ti-aemif.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-)
Thanks, applied.
Best regards, Krzysztof
| |