drm/xe: Fix loop in vm_bind_ioctl_ops_unwind
authorMatthew Brost <matthew.brost@intel.com>
Thu, 1 Feb 2024 17:55:32 +0000 (09:55 -0800)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 8 Feb 2024 08:49:10 +0000 (09:49 +0100)
commitddc7d4c584704666fe7088bbd9ec2d72d0f63e65
treea9c3964669d6ccf9fbed24e2dd32fac08386a51c
parent54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
drm/xe: Fix loop in vm_bind_ioctl_ops_unwind

The logic for the unwind loop is incorrect resulting in an infinite
loop. Fix to unwind to go from the last operations list to he first.

Fixes: 617eebb9c480 ("drm/xe: Fix array of binds")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240201175532.2303168-1-matthew.brost@intel.com
(cherry picked from commit 3acc1ff1a72fce00cdbd3ef1c27108a967fd5616)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_vm.c