]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check context status before looking up our obj/vma
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Aug 2017 08:52:05 +0000 (09:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Aug 2017 10:57:13 +0000 (11:57 +0100)
commitd288815a878b5bc73c4310ab9a65f19fd34e3e0d
tree530b7c882fc4cbba06f77f2f102d79545f73026d
parente4dd94c2a95ef58f95c5c3999560abab3c655cae
drm/i915: Check context status before looking up our obj/vma

Since we keep the context around across the slow lookup where we may
drop the struct_mutex, we should double check that the context is still
valid upon reacquisition.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170816085210.4199-2-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem_execbuffer.c