]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: stm32: dmamux: fix OF node leak on route allocation failure
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:53 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:18:49 +0000 (11:18 +0100)
commitf45cafe3b6bfb9e58022539ca43a1f011ee91fd2
treed9ed54a9fa7ef4c8d792831ad8b9c42d559dd3a8
parent2fb10259d4efb4367787b5ae9c94192e8a91c648
dmaengine: stm32: dmamux: fix OF node leak on route allocation failure

commit b1b590a590af13ded598e70f0b72bc1e515787a1 upstream.

Make sure to drop the reference taken to the DMA master OF node also on
late route allocation failures.

Fixes: df7e762db5f6 ("dmaengine: Add STM32 DMAMUX driver")
Cc: stable@vger.kernel.org # 4.15
Cc: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://patch.msgid.link/20251117161258.10679-12-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/stm32/stm32-dmamux.c