]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:24 +0000 (08:34 +0100)
commitfc5c7fbe59ebfef88a4a5457611ecdba5f936c87
tree53b44bcd894403743b1801231b8430048c285e40
parentbb8be80c4eb1bf1c3032b9469fbf2cce485e12b1
dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()

[ Upstream commit 133e0de20a071749d6f8bae74bccc70fbc49f728 ]

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: fedf4e5e48e9 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/xilinx/xilinx_dma.c