]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Use the correct err_unlock unwind path for a closed context
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 22 Mar 2020 12:32:41 +0000 (12:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 22 Mar 2020 13:44:24 +0000 (13:44 +0000)
commit5b47de6bdfe39fe7df684118b8a60870fcfcb49b
treec0b2861932b4de2b53d3ca4681b9deec1fdfdd6c
parentde570ce042f23c71b4f9f1ca832007a94aad3113
drm/i915/gt: Use the correct err_unlock unwind path for a closed context

A silly cut'n'paste copied the unlocked error path and used it inside
the pin_mutex lock, we need to drop that lock before returning.

Fixes: de570ce042f2 ("drm/i915/gt: Report context-is-closed prior to pinning")
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/20200322123241.17694-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c