Skip to content

Commit d02c24a

Browse files
vcgomesgregkh
authored andcommitted
dmaengine: idxd: Fix not releasing workqueue on .release()
[ Upstream commit 3d33de3 ] The workqueue associated with an DSA/IAA device is not released when the object is freed. Fixes: 47c16ac ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 46dd1b0 commit d02c24a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/dma/idxd/sysfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,7 @@ static void idxd_conf_device_release(struct device *dev)
18101810
{
18111811
struct idxd_device *idxd = confdev_to_idxd(dev);
18121812

1813+
destroy_workqueue(idxd->wq);
18131814
kfree(idxd->groups);
18141815
bitmap_free(idxd->wq_enable_map);
18151816
kfree(idxd->wqs);

0 commit comments

Comments
 (0)