drm/i915: Clear ret before unbinding in i915_gem_evict_something()
authorChris Wilson <[email protected]>
Thu, 5 Jan 2017 15:59:40 +0000 (15:59 +0000)
committerChris Wilson <[email protected]>
Thu, 5 Jan 2017 16:44:51 +0000 (16:44 +0000)
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 <[email protected]>
Fixes: 9332f3b1b99a ("drm/i915: Combine loops within i915_gem_evict_something")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Matthew Auld <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Matthew Auld <[email protected]>
Cc: <[email protected]> # v4.9+
drivers/gpu/drm/i915/i915_gem_evict.c

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