Skip to content
Commit 94e9dd43 authored by Pan Bian's avatar Pan Bian Committed by Krzysztof Kozlowski
Browse files

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



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: default avatarPan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210121090359.61763-1-bianpan2016@163.com


Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 18212031
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment