]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:29:59 +0000 (16:29 +0200)
commitd9c8ad935d1fc760acc2ab3cfe94ea6be2ec1658
tree7c6799820ded1ef685d2dc1098a137fb9451b230
parent555bd16351a35c79efb029a196975a5a27f7fbc4
dmaengine: dw: dmamux: Fix device reference leak in rzn1_dmamux_route_allocate

commit aa2e1e4563d3ab689ffa86ca1412ecbf9fd3b308 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/dw/rzn1-dmamux.c