]> git.ipfire.org Git - thirdparty/linux.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)
committerVinod Koul <vkoul@kernel.org>
Sun, 14 Dec 2025 09:17:24 +0000 (14:47 +0530)
commitec25e60f9f95464aa11411db31d0906b3fb7b9f2
tree1083279b23d69e1fa0c8c6cdb5ff7a7f98dcc1f4
parent7bb7d696e0361bbfc1411462c784998cca0afcbb
dmaengine: dw: dmamux: fix OF node leak on route allocation failure

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>
drivers/dma/dw/rzn1-dmamux.c