]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: ti: k3-udma: fix device leak on udma lookup
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:58 +0000 (17:12 +0100)
committerVinod Koul <vkoul@kernel.org>
Sun, 14 Dec 2025 09:17:25 +0000 (14:47 +0530)
commit430f7803b69cd5e5694e5dfc884c6628870af36e
tree4911211b3af8630dd98d9a0c02c34e7e6b29370d
parent646ff780338bd7305c9f2fdeb418fdb01623a71c
dmaengine: ti: k3-udma: fix device leak on udma lookup

Make sure to drop the reference taken when looking up the UDMA platform
device.

Note that holding a reference to a platform device does not prevent its
driver data from going away so there is no point in keeping the
reference after the lookup helper returns.

Fixes: d70241913413 ("dmaengine: ti: k3-udma: Add glue layer for non DMAengine users")
Fixes: 1438cde8fe9c ("dmaengine: ti: k3-udma: add missing put_device() call in of_xudma_dev_get()")
Cc: stable@vger.kernel.org # 5.6: 1438cde8fe9c
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251117161258.10679-17-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma-private.c