WSL2-Linux-Kernel/drivers/dma/idxd
Dave Jiang a3e340c157 dmaengine: idxd: fix resource leak on dmaengine driver disable
The wq resources needs to be released before the kernel type is reset by
__drv_disable_wq(). With dma channels unregistered and wq quiesced, all the
wq resources for dmaengine can be freed. There is no need to wait until wq
is disabled. With the wq->type being reset to "unknown", the driver is
skipping the freeing of the resources.

Fixes: 0cda4f6986 ("dmaengine: idxd: create dmaengine driver for wq 'device'")
Reported-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Tested-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163517405099.3484556.12521975053711345244.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-10-28 22:54:45 +05:30
..
Makefile dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30
compat.c dmaengine: idxd: Fix a possible NULL pointer dereference 2021-08-02 12:35:10 +05:30
device.c dmaengine: idxd: cleanup completion record allocation 2021-10-28 22:54:44 +05:30
dma.c dmaengine: idxd: fix resource leak on dmaengine driver disable 2021-10-28 22:54:45 +05:30
idxd.h dmaengine: idxd: cleanup completion record allocation 2021-10-28 22:54:44 +05:30
init.c dmanegine: idxd: fix resource free ordering on driver removal 2021-10-25 11:51:22 +05:30
irq.c dmaengine: idxd: add halt interrupt support 2021-10-25 12:09:15 +05:30
perfmon.c dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
perfmon.h dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
registers.h dmaengine: idxd: add halt interrupt support 2021-10-25 12:09:15 +05:30
submit.c dmaengine: idxd: make submit failure path consistent on desc freeing 2021-08-25 17:00:24 +05:30
sysfs.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30