]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/i915: Assert we do not attempt to reuse an allocated node
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 15 Jan 2017 17:27:40 +0000 (17:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jan 2017 12:21:20 +0000 (12:21 +0000)
commit9734ad13c2321e8efc1fab4665d40d88e947c560
tree9f388ce1a9920c270ee8ed35315a3ca4baec7caa
parent3fec7ec4450fee2f18fe20088209193999d8ff94
drm/i915: Assert we do not attempt to reuse an allocated node

i915_gem_gtt_reserve() and i915_gem_gtt_insert() can only work on
unallocated nodes. Check that the callers complies.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170115172740.28995-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c