Skip to content
Commit 4703b047 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Be defensive when cleaning up i915_gem_internal pages



If we abort the i915_gem_internal get_pages, we mark the failing sg as
the last. However, that means we iterate upto and including the failing
sg element and results in us trying to free the unallocated sg_page().

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170131104630.3074-1-chris@chris-wilson.co.uk
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
parent 9b51b105
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment