Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43919
b: refs/heads/master
c: 21fa60e
h: refs/heads/master
i:
  43917: 6797e35
  43915: e665490
  43911: bc9e90b
  43903: f4245a5
v: v3
  • Loading branch information
=?utf-8?q?Michel_D=C3=A4nzer?= authored and airlied committed Dec 7, 2006
1 parent 97acd39 commit cfbc6b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 2dbb232c4d6b6c89fc367f7566c7c87dd3b56cd7
refs/heads/master: 21fa60ed4eab5b3b28d05930bb086615ecc191b1
10 changes: 5 additions & 5 deletions trunk/drivers/char/drm/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,6 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
return DRM_ERR(EINVAL);
}

if (dev_priv->swaps_pending >= 100) {
DRM_DEBUG("Too many swaps queued\n");
return DRM_ERR(EBUSY);
}

DRM_COPY_FROM_USER_IOCTL(swap, (drm_i915_vblank_swap_t __user *) data,
sizeof(swap));

Expand Down Expand Up @@ -461,6 +456,11 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)

spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);

if (dev_priv->swaps_pending >= 100) {
DRM_DEBUG("Too many swaps queued\n");
return DRM_ERR(EBUSY);
}

vbl_swap = drm_calloc(1, sizeof(vbl_swap), DRM_MEM_DRIVER);

if (!vbl_swap) {
Expand Down

0 comments on commit cfbc6b1

Please sign in to comment.