dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
authorLiu Shixin <liushixin2@huawei.com>
Tue, 22 Nov 2022 02:16:12 +0000 (10:16 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Jan 2023 16:46:04 +0000 (22:16 +0530)
commit596b53ccc36a546ab28e8897315c5b4d1d5a0200
tree9cab87b9bf693902a79504db8315a319b97d3fd0
parent1417f59ac0b02130ee56c0c50794b9b257be3d17
dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()

Since for_each_child_of_node() will increase the refcount of node, we need
to call of_node_put() manually when breaking out of the iteration.

Fixes: 9cd4360de609 ("dma: Add Xilinx AXI Video Direct Memory Access Engine driver support")
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Link: https://lore.kernel.org/r/20221122021612.1908866-1-liushixin2@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c