]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Check for a closed context when looking up an engine
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Mar 2020 16:14:47 +0000 (16:14 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Mar 2020 09:18:02 +0000 (09:18 +0000)
commit33f1a00b9967c6c43755d94b3202a1d370afe343
tree927be80d9d261fc978a4db285de050cc66749c45
parent5ac7d199fa270d6a2b9420a2519341dd46562374
drm/i915/gem: Check for a closed context when looking up an engine

Beware that the context may already be closed as we try to lookup an
engine.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1389
Fixes: 4f15002c8cb0 ("drm/i915/gem: Consolidate ctx->engines[] release")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200316161447.18410-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.h