mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 12:33:18 -04:00
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:617eebb9c4("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 commit3acc1ff1a7) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
This commit is contained in:
committed by
Thomas Hellström
parent
54be6c6c5a
commit
ddc7d4c584
@@ -2669,7 +2669,7 @@ static void vm_bind_ioctl_ops_unwind(struct xe_vm *vm,
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = num_ops_list - 1; i; ++i) {
|
||||
for (i = num_ops_list - 1; i >= 0; --i) {
|
||||
struct drm_gpuva_ops *__ops = ops[i];
|
||||
struct drm_gpuva_op *__op;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user