]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:29 +0000 (10:27 +0100)
commitc81ea0222eaaafdd77348e27d1e84a1b8cfc0c99
tree008fe034049d4f78bee9da5621a756bbfaf20560
parentdb7c79c1bbfb1b0184e78a17ac2bd0f2bc3134d1
dmaengine: idxd: fix device leaks on compat bind and unbind

commit 799900f01792cf8b525a44764f065f83fcafd468 upstream.

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