]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: ti: dma-crossbar: fix device leak on dra7x route allocation
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:55 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:30 +0000 (10:27 +0100)
commit8df7c3e6d1e5e5fe3a331ed78aa9463ac27fe54e
tree8fa4d2c13101bd527396b8a1b8a2eca95aac24d2
parent4e45ae701b81680d16ff1f79b794d20bf578c511
dmaengine: ti: dma-crossbar: fix device leak on dra7x route allocation

commit dc7e44db01fc2498644e3106db3e62a9883a93d5 upstream.

Make sure to drop the reference taken when looking up the crossbar
platform device during dra7x route allocation.

Note that commit 615a4bfc426e ("dmaengine: ti: Add missing put_device in
ti_dra7_xbar_route_allocate") fixed the leak in the error paths but the
reference is still leaking on successful allocation.

Fixes: a074ae38f859 ("dmaengine: Add driver for TI DMA crossbar on DRA7x")
Fixes: 615a4bfc426e ("dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate")
Cc: stable@vger.kernel.org # 4.2: 615a4bfc426e
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251117161258.10679-14-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/ti/dma-crossbar.c