aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/i915_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c
index e9e46c41bf36..df28bc1e84c6 100644
--- a/drivers/char/drm/i915_irq.c
+++ b/drivers/char/drm/i915_irq.c
@@ -439,7 +439,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
439 swap.sequence += curseq; 439 swap.sequence += curseq;
440 break; 440 break;
441 case _DRM_VBLANK_ABSOLUTE: 441 case _DRM_VBLANK_ABSOLUTE:
442 if ((curseq - swap.sequence) > (1<<23)) { 442 if ((curseq - swap.sequence) <= (1<<23)) {
443 spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags); 443 spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);
444 DRM_DEBUG("Missed target sequence\n"); 444 DRM_DEBUG("Missed target sequence\n");
445 return DRM_ERR(EINVAL); 445 return DRM_ERR(EINVAL);