]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82f7d10b61bf5754822c995123fdce0fd9f506a3
tree4d90b793f4ee66d0083520b973065e98a9783c6f
parente2e708692c44f7603b72ccbbcb3707f8d463f74e
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