Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299358
b: refs/heads/master
c: aef6a7e
h: refs/heads/master
v: v3
  • Loading branch information
Joonyoung Shim authored and Dave Airlie committed Apr 19, 2012
1 parent 89d2dd9 commit 9cc6a24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: d6b8395262a9d90e4ab11b614a5fb8f858e2b3df
refs/heads/master: aef6a7eeac6fd867eda415f65a7f0247fb82baf4
10 changes: 6 additions & 4 deletions trunk/drivers/gpu/drm/drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3335,10 +3335,12 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,

ret = crtc->funcs->page_flip(crtc, fb, e);
if (ret) {
spin_lock_irqsave(&dev->event_lock, flags);
file_priv->event_space += sizeof e->event;
spin_unlock_irqrestore(&dev->event_lock, flags);
kfree(e);
if (page_flip->flags & DRM_MODE_PAGE_FLIP_EVENT) {
spin_lock_irqsave(&dev->event_lock, flags);
file_priv->event_space += sizeof e->event;
spin_unlock_irqrestore(&dev->event_lock, flags);
kfree(e);
}
}

out:
Expand Down

0 comments on commit 9cc6a24

Please sign in to comment.