drm/i915: Assert that the handle->vma lut is empty on object close
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Aug 2017 11:05:16 +0000 (12:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Aug 2017 14:22:46 +0000 (15:22 +0100)
commit67b48040255b77ea7d11e68e07c83e502308c65d
tree1f0d91c924ff53add29caa7a856d1acda37cb5f2
parent432295d7b906dae11129fc2870289465c907e5f2
drm/i915: Assert that the handle->vma lut is empty on object close

Make sure that we are not leaking an entry in the ctx->handles_lut by
asserting that the object was removed prior to being freed. This should
be enforced by all such handles being removed by i915_gem_close_object.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20170822110517.22277-2-chris@chris-wilson.co.uk
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/i915/i915_gem.c