diff options
author | Dave Jiang <dave.jiang@intel.com> | 2021-04-15 16:37:39 -0700 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-20 16:43:53 +0530 |
commit | 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 (patch) | |
tree | d6c39301f39903b6eb4ceffae4b30ca4c6546369 /mm/highmem.c | |
parent | 47c16ac27d4cb664cee53ee0b9b7e2f907923fb3 (diff) |
dmaengine: idxd: fix wq conf_dev 'struct device' lifetime
Remove devm_* allocation and fix wq->conf_dev 'struct device' lifetime.
Address issues flagged by CONFIG_DEBUG_KOBJECT_RELEASE. Add release
functions in order to free the allocated memory for the wq context at
device destruction time.
Reported-by: Jason Gunthorpe <jgg@nvidia.com>
Fixes: bfe1d56091c1 ("dmaengine: idxd: Init and probe for Intel data accelerators")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161852985907.2203940.6840120734115043753.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'mm/highmem.c')
0 files changed, 0 insertions, 0 deletions