Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318765
b: refs/heads/master
c: 7915810
h: refs/heads/master
i:
  318763: f6e33d0
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Jul 20, 2012
1 parent 50ec32d commit 1f388eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4f32fc3a37e982fffce8ec583643990ff288419
refs/heads/master: 79158103bf20c9ff55204ceb78a5773f422b03be
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -6486,7 +6486,9 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
intel_fb = to_intel_framebuffer(fb);
obj = intel_fb->obj;

mutex_lock(&dev->struct_mutex);
ret = i915_mutex_lock_interruptible(dev);
if (ret)
goto cleanup;

/* Reference the objects for the scheduled work. */
drm_gem_object_reference(&work->old_fb_obj->base);
Expand Down Expand Up @@ -6521,6 +6523,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
drm_gem_object_unreference(&obj->base);
mutex_unlock(&dev->struct_mutex);

cleanup:
spin_lock_irqsave(&dev->event_lock, flags);
intel_crtc->unpin_work = NULL;
spin_unlock_irqrestore(&dev->event_lock, flags);
Expand Down

0 comments on commit 1f388eb

Please sign in to comment.