]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate
authorMiaoqian Lin <linmq006@gmail.com>
Sun, 5 Jun 2022 04:27:22 +0000 (08:27 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:27:29 +0000 (16:27 +0200)
commit83b1e3ca6a30f8731c0a40acc9f46e2b9a19e6db
tree75caf1d58fcc3f3d2363071d1a82725a8997872f
parent61b4ef19c346dc21ab1d4f39f5c412e3037b2bdc
dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate

commit 615a4bfc426e11dba05c2cf343f9ac752fb381d2 upstream.

of_find_device_by_node() takes reference, we should use put_device()
to release it when not need anymore.

Fixes: a074ae38f859 ("dmaengine: Add driver for TI DMA crossbar on DRA7x")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20220605042723.17668-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/ti-dma-crossbar.c