]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Release ctx->engine_mutex after iteration
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 22:33:16 +0000 (23:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Oct 2019 09:07:25 +0000 (10:07 +0100)
commit3593cde98f0c6341650297144f16f39b58cd0029
tree9e6b69781811308d5459a7c52cede304e208fc2b
parenta69d19c8572055edee12248b06dd1b197d39bf79
drm/i915/selftests: Release ctx->engine_mutex after iteration

A lock once taken must be released again.

Fixes: fc6dd834b3b2 ("drm/i915/selftests: Teach switch_to_context() to use the context")
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>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191022223316.12662-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem.c