memory: ti-aemif: Drop child node when jumping out loop
stable inclusion from stable-5.10.20 commit 509fe94c196f264f34d950bcc2521793c59cc4c2 bugzilla: 50608 -------------------------------- [ Upstream commit 94e9dd43 ] 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: 5a7c8154 ("memory: ti-aemif: introduce AEMIF driver") Signed-off-by: NPan Bian <bianpan2016@163.com> Link: https://lore.kernel.org/r/20210121090359.61763-1-bianpan2016@163.comSigned-off-by: NKrzysztof Kozlowski <krzk@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录