]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: lpc18xx-dmamux: fix device leak on route allocation
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:49 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:29 +0000 (10:27 +0100)
commit9fba97baa520c9446df51a64708daf27c5a7ed32
tree1675f9b689e4345ea869ae79b452690bb5ffae6b
parentc81ea0222eaaafdd77348e27d1e84a1b8cfc0c99
dmaengine: lpc18xx-dmamux: fix device leak on route allocation

commit d4d63059dee7e7cae0c4d9a532ed558bc90efb55 upstream.

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

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

Fixes: e5f4ae84be74 ("dmaengine: add driver for lpc18xx dmamux")
Cc: stable@vger.kernel.org # 4.3
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Link: https://patch.msgid.link/20251117161258.10679-8-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/lpc18xx-dmamux.c