dmaengine: dw: dmamux: Fix device reference leak in rzn1_dmamux_route_allocate
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 2 Sep 2025 09:03:58 +0000 (17:03 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Sep 2025 09:31:51 +0000 (15:01 +0530)
commitaa2e1e4563d3ab689ffa86ca1412ecbf9fd3b308
tree077da84caaa85311a631bdf13529fc6da9cbe426
parente63419dbf2ceb083c1651852209c7f048089ac0f
dmaengine: dw: dmamux: Fix device reference leak in rzn1_dmamux_route_allocate

The reference taken by of_find_device_by_node()
must be released when not needed anymore.
Add missing put_device() call to fix device reference leaks.

Fixes: 134d9c52fca2 ("dmaengine: dw: dmamux: Introduce RZN1 DMA router support")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20250902090358.2423285-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw/rzn1-dmamux.c