]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clear ret before unbinding in i915_gem_evict_something()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jan 2017 15:59:40 +0000 (15:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jan 2017 16:44:51 +0000 (16:44 +0000)
commitb76daaeefcf7fce0d92262182ca1ccd45f58ab39
treee08dcd1cd4b5a7f0bd3c0ade06dcd6e35a8c5b0a
parentef384264ed525164eccacf3c1b9fbf75b68150b5
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: 01043c0c1822 ("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+
drivers/gpu/drm/i915/i915_gem_evict.c