drm/xe: Replace list_del_init with list_del for userptr.invalidate_link cleanup
authorMatthew Brost <matthew.brost@intel.com>
Thu, 20 Jul 2023 03:50:24 +0000 (20:50 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:53 +0000 (11:37 -0500)
This list isn't used again, list_del is the proper call.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm.c

index 29a950a02a36bb7fb037eb2b940d79cd7af7b8d3..1ea4f20ac72382db07d4c8ebf3cfe22a3087b345 100644 (file)
@@ -1077,7 +1077,7 @@ static void xe_vma_destroy(struct xe_vma *vma, struct dma_fence *fence)
                XE_WARN_ON(!(vma->gpuva.flags & XE_VMA_DESTROYED));
 
                spin_lock(&vm->userptr.invalidated_lock);
-               list_del_init(&vma->userptr.invalidate_link);
+               list_del(&vma->userptr.invalidate_link);
                spin_unlock(&vm->userptr.invalidated_lock);
        } else if (!xe_vma_is_null(vma)) {
                xe_bo_assert_held(xe_vma_bo(vma));