]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: sh: rz-dmac: fix device leak on probe failure
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:51 +0000 (17:12 +0100)
committerVinod Koul <vkoul@kernel.org>
Sun, 14 Dec 2025 09:17:24 +0000 (14:47 +0530)
commit9fb490323997dcb6f749cd2660a17a39854600cd
treee2423226126da97ccaac648abf2809f18e8ab0cb
parentd9847e6d1d91462890ba297f7888fa598d47e76e
dmaengine: sh: rz-dmac: fix device leak on probe failure

Make sure to drop the reference taken when looking up the ICU device
during probe also on probe failures (e.g. probe deferral).

Fixes: 7de873201c44 ("dmaengine: sh: rz-dmac: Add RZ/V2H(P) support")
Cc: stable@vger.kernel.org # 6.16
Cc: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Link: https://patch.msgid.link/20251117161258.10679-10-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rz-dmac.c