]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: dw: dmamux: fix OF node leak on route allocation failure
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:47 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:33 +0000 (11:21 +0100)
commiteabe40f8a53c29f531e92778ea243e379f4f7978
tree6bc7c818f05ce8fc5f177ffc0d12d74ad03b2a2b
parent9b3cff9f4007a4bd1ac7092bfe9381ce4b7da156
dmaengine: dw: dmamux: fix OF node leak on route allocation failure

commit ec25e60f9f95464aa11411db31d0906b3fb7b9f2 upstream.

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

Fixes: 134d9c52fca2 ("dmaengine: dw: dmamux: Introduce RZN1 DMA router support")
Cc: stable@vger.kernel.org # 5.19
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20251117161258.10679-6-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/dw/rzn1-dmamux.c