Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357976
b: refs/heads/master
c: b4d5e7d
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Jan 20, 2013
1 parent 18237e8 commit e9bfccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: b62584e366ebcb3adffefad373a5abc4c4b677ca
refs/heads/master: b4d5e7d1dbdd6a758a4f7717beef7bd6b007bd66
7 changes: 4 additions & 3 deletions trunk/drivers/gpu/drm/drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3699,12 +3699,12 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,
page_flip->reserved != 0)
return -EINVAL;

drm_modeset_lock_all(dev);
obj = drm_mode_object_find(dev, page_flip->crtc_id, DRM_MODE_OBJECT_CRTC);
if (!obj)
goto out;
return -EINVAL;
crtc = obj_to_crtc(obj);

mutex_lock(&crtc->mutex);
if (crtc->fb == NULL) {
/* The framebuffer is currently unbound, presumably
* due to a hotplug event, that userspace has not
Expand Down Expand Up @@ -3786,7 +3786,8 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,
drm_framebuffer_unreference(fb);
if (old_fb)
drm_framebuffer_unreference(old_fb);
drm_modeset_unlock_all(dev);
mutex_unlock(&crtc->mutex);

return ret;
}

Expand Down

0 comments on commit e9bfccf

Please sign in to comment.