WSL2-Linux-Kernel/drivers/dma/idxd
Dave Jiang 47c16ac27d dmaengine: idxd: fix idxd conf_dev 'struct device' lifetime
The devm managed lifetime is incompatible with 'struct device' objects that
resides in idxd context. This is one of the series that clean up the idxd
driver 'struct device' lifetime. Fix idxd->conf_dev 'struct device'
lifetime. Address issues flagged by CONFIG_DEBUG_KOBJECT_RELEASE.
Add release functions in order to free the allocated memory at the
appropriate time.

Reported-by: Jason Gunthorpe <jgg@nvidia.com>
Fixes: bfe1d56091 ("dmaengine: idxd: Init and probe for Intel data accelerators")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161852985319.2203940.4650791514462735368.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-04-20 16:43:53 +05:30
..
Makefile dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
cdev.c dmaengine: idxd: add IAX configuration support in the IDXD driver 2020-12-11 19:45:53 +05:30
device.c dmaengine: idxd: cleanup pci interrupt vector allocation management 2021-04-20 16:43:52 +05:30
dma.c dmaengine: idxd: fix dma device lifetime 2021-04-20 16:43:52 +05:30
idxd.h dmaengine: idxd: fix idxd conf_dev 'struct device' lifetime 2021-04-20 16:43:53 +05:30
init.c dmaengine: idxd: fix idxd conf_dev 'struct device' lifetime 2021-04-20 16:43:53 +05:30
irq.c dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback 2021-04-12 13:26:03 +05:30
registers.h dmaengine updates for v5.11-rc1 2020-12-17 12:52:23 -08:00
submit.c dmaengine updates for v5.11-rc1 2020-12-17 12:52:23 -08:00
sysfs.c dmaengine: idxd: fix idxd conf_dev 'struct device' lifetime 2021-04-20 16:43:53 +05:30