diff options
author | Pan Bian <bianpan2016@163.com> | 2021-01-21 01:03:59 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-04 10:26:14 +0100 |
commit | 75921ff8bdc492bc19be3f8a32f790aea07b7f05 (patch) | |
tree | 64427bb65ac5a127c5fdd75ae4e2ce330e8db55a /arch/arm/boot/dts/omap443x.dtsi | |
parent | 725cb22009f7fe317be13df194b5badaab07b645 (diff) |
memory: ti-aemif: Drop child node when jumping out loop
[ Upstream commit 94e9dd43cf327366388c8f146bccdc6322c0d999 ]
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>
Link: https://lore.kernel.org/r/20210121090359.61763-1-bianpan2016@163.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/omap443x.dtsi')
0 files changed, 0 insertions, 0 deletions