]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: cv1800b-dmamux: fix device leak on route allocation
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:46 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:33 +0000 (11:21 +0100)
commit9b3cff9f4007a4bd1ac7092bfe9381ce4b7da156
treeee8e884440b3165a91d9f45fba9b0a730b703c6c
parent2ed1a9de1f2d727ccae5bc9cc7c63ee3519c0c8b
dmaengine: cv1800b-dmamux: fix device leak on route allocation

commit 7bb7d696e0361bbfc1411462c784998cca0afcbb upstream.

Make sure to drop the reference taken when looking up the DMA mux
platform device during route allocation.

Note that holding a reference to a device does not prevent its driver
data from going away so there is no point in keeping the reference.

Fixes: db7d07b5add4 ("dmaengine: add driver for Sophgo CV18XX/SG200X dmamux")
Cc: stable@vger.kernel.org # 6.17
Cc: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251117161258.10679-5-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/cv1800b-dmamux.c