diff options
| author | Vinicius Costa Gomes <vinicius.gomes@intel.com> | 2026-01-21 21:34:35 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-02 14:07:32 +0300 |
| commit | 37cf97e37498ae1ca7b873e53e3f225a92ecee2d (patch) | |
| tree | 5246cc3c208fc5c5f846f756cad9556f25688e25 /include/linux | |
| parent | 509ff03a3f1886e779201176d891321a69ce2788 (diff) | |
| download | linux-37cf97e37498ae1ca7b873e53e3f225a92ecee2d.tar.xz | |
dmaengine: idxd: Fix freeing the allocated ida too late
[ Upstream commit c311f5e9248471a950f0a524c2fd736414d98900 ]
It can happen that when the cdev .release() is called, the driver
already called ida_destroy(). Move ida_free() to the _del() path.
We see with DEBUG_KOBJECT_RELEASE enabled and forcing an early PCI
unbind.
Fixes: 04922b7445a1 ("dmaengine: idxd: fix cdev setup and free device lifetime issues")
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-9-7ed70658a9d1@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
