summaryrefslogtreecommitdiff
path: root/drivers/dma/ppc4xx
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2021-10-25 08:01:04 -0700
committerVinod Koul <vkoul@kernel.org>2021-10-28 22:54:45 +0530
commita3e340c1574b6679f5b333221284d0959095da52 (patch)
tree507311ba54e79001f1d4e5b5598ae59f80592f66 /drivers/dma/ppc4xx
parent2efe58cfaad4ad94eab888d287c174de5209a0c2 (diff)
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: 0cda4f6986a3 ("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>
Diffstat (limited to 'drivers/dma/ppc4xx')
0 files changed, 0 insertions, 0 deletions