]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Be defensive when cleaning up i915_gem_internal pages
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Jan 2017 10:46:30 +0000 (10:46 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Jan 2017 11:15:03 +0000 (11:15 +0000)
commit96bc6f21c76834aaac2b0a55a55e5c209f889646
treee7b4ff4b480227a5c3cd07e929c0921fd0b2a8d3
parent63752f7682219e6d35cb6344f2ff3c6333f51bcd
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: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170131104630.3074-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem_internal.c