Browse Source

drm/i915: Clear ret before unbinding in i915_gem_evict_something()

Missed when rebasing patches, I failed to set ret to zero before
starting the unbind loop (which depends upon ret being zero).

Reported-by: Matthew Auld <matthew.william.auld@gmail.com>
Fixes: 9332f3b1b99a ("drm/i915: Combine loops within i915_gem_evict_something")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170105155940.10033-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Cc: <stable@vger.kernel.org> # v4.9+
Chris Wilson 8 years ago
parent
commit
121dfbb2a2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpu/drm/i915/i915_gem_evict.c

+ 1 - 0
drivers/gpu/drm/i915/i915_gem_evict.c

@@ -209,6 +209,7 @@ found:
 	}
 	}
 
 
 	/* Unbinding will emit any required flushes */
 	/* Unbinding will emit any required flushes */
+	ret = 0;
 	while (!list_empty(&eviction_list)) {
 	while (!list_empty(&eviction_list)) {
 		vma = list_first_entry(&eviction_list,
 		vma = list_first_entry(&eviction_list,
 				       struct i915_vma,
 				       struct i915_vma,