mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
dmaengine: ti: dma-crossbar: fix device leak on dra7x route allocation
commitdc7e44db01upstream. Make sure to drop the reference taken when looking up the crossbar platform device during dra7x route allocation. Note that commit615a4bfc42("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:a074ae38f8("dmaengine: Add driver for TI DMA crossbar on DRA7x") Fixes:615a4bfc42("dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate") Cc: stable@vger.kernel.org # 4.2:615a4bfc42Cc: 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>
This commit is contained in:
parent
f45cafe3b6
commit
e50b9bf91d
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue