]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dmaengine: idxd: Fix not releasing workqueue on .release()
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Wed, 21 Jan 2026 18:34:33 +0000 (10:34 -0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 25 Feb 2026 11:09:18 +0000 (16:39 +0530)
The workqueue associated with an DSA/IAA device is not released when
the object is freed.

Fixes: 47c16ac27d4c ("dmaengine: idxd: fix idxd conf_dev 'struct device' lifetime")
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Link: https://patch.msgid.link/20260121-idxd-fix-flr-on-kernel-queues-v3-v3-7-7ed70658a9d1@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c

index cc2c83d7f710404a4e30189c4f071a3f18157ec7..6d251095c350f8a66f5b582eca5e1c774c41c1a1 100644 (file)
@@ -1836,6 +1836,7 @@ static void idxd_conf_device_release(struct device *dev)
 {
        struct idxd_device *idxd = confdev_to_idxd(dev);
 
+       destroy_workqueue(idxd->wq);
        kfree(idxd->groups);
        bitmap_free(idxd->wq_enable_map);
        kfree(idxd->wqs);