Skip to content

Commit bb6892b

Browse files
committed
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: b412c63 ("drm/i915/gt: Report context-is-closed prior to pinning") Signed-off-by: Chris Wilson <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Mika Kuoppala <[email protected]> Reviewed-by: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b412c63 commit bb6892b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/gt/intel_context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int __intel_context_do_pin(struct intel_context *ce)
114114

115115
if (unlikely(intel_context_is_closed(ce))) {
116116
err = -ENOENT;
117-
goto out_release;
117+
goto out_unlock;
118118
}
119119

120120
if (likely(!atomic_add_unless(&ce->pin_count, 1, 0))) {

0 commit comments

Comments
 (0)