OSDN Git Service

drm/i915: Add a few more sanity checks for stolen handling
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 17 Nov 2016 15:58:46 +0000 (15:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 17 Nov 2016 20:30:23 +0000 (20:30 +0000)
commit6288c79ea519f6ca3a54d87974b48ca6a8b986af
tree4d90b793f4ee66d0083520b973065e98a9783c6f
parenta194b8cb849586306b3f097cfc87c6ccdd7e4ecd
drm/i915: Add a few more sanity checks for stolen handling

We should never be called via obj->ops->release() on anything other than
a fully formed stolen object, so raise that to an assert. In the process
tidy up a comment and variable no longer used outside of a conditional
BUG.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20161117155846.4631-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem_stolen.c