]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Markup impossible error pointers
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2019 09:49:33 +0000 (10:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2019 12:22:01 +0000 (13:22 +0100)
commit55f2d0b6bdf9d15b87c8e517ff1ba9d314320124
tree74c5278fa1b6bafc11a03289adbe9c5235a607a8
parent1c1c573ef1e4242b79785d4099f4e25f7250d3b9
drm/i915/selftests: Markup impossible error pointers

If we create a new live_context() we should have a mapping for each
engine. Document that assumption with an assertion.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190827094933.13778-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c