drm/i915: Assert we do not overflow 4lvl page directories
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 25 Feb 2017 18:11:20 +0000 (18:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 25 Feb 2017 18:54:36 +0000 (18:54 +0000)
commit357480ce2fe4dc11ff0b77706d77e2319c96fe31
tree6ed9a8535c9b155999a4d2e795acddc78edc4de1
parentb3bb82885feb74feadc101a700e64ed7ede84b04
drm/i915: Assert we do not overflow 4lvl page directories

Before looking up the page directory entry, check we are still within
bounds.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170225181122.4788-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c