|
@@ -12260,7 +12260,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
|
|
|
intel_crtc->reset_count = i915_reset_count(&dev_priv->gpu_error);
|
|
|
if (i915_reset_in_progress_or_wedged(&dev_priv->gpu_error)) {
|
|
|
ret = -EIO;
|
|
|
- goto cleanup;
|
|
|
+ goto unlock;
|
|
|
}
|
|
|
|
|
|
atomic_inc(&intel_crtc->unpin_work_count);
|
|
@@ -12352,6 +12352,7 @@ cleanup_unpin:
|
|
|
intel_unpin_fb_obj(fb, crtc->primary->state->rotation);
|
|
|
cleanup_pending:
|
|
|
atomic_dec(&intel_crtc->unpin_work_count);
|
|
|
+unlock:
|
|
|
mutex_unlock(&dev->struct_mutex);
|
|
|
cleanup:
|
|
|
crtc->primary->fb = old_fb;
|