]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: idxd: fix device leaks on compat bind and unbind
authorJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 16:12:48 +0000 (17:12 +0100)
committerVinod Koul <vkoul@kernel.org>
Sun, 14 Dec 2025 09:17:24 +0000 (14:47 +0530)
commit799900f01792cf8b525a44764f065f83fcafd468
tree213fce7e164fc9a1dda0a731132d8143ef37c364
parentec25e60f9f95464aa11411db31d0906b3fb7b9f2
dmaengine: idxd: fix device leaks on compat bind and unbind

Make sure to drop the reference taken when looking up the idxd device as
part of the compat bind and unbind sysfs interface.

Fixes: 6e7f3ee97bbe ("dmaengine: idxd: move dsa_drv support to compatible mode")
Cc: stable@vger.kernel.org # 5.15
Cc: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251117161258.10679-7-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/compat.c