Commit 2dbb232c authored by =?utf-8?q?Michel_D=C3=A4nzer?='s avatar =?utf-8?q?Michel_D=C3=A4nzer?= Committed by airlied

drm: i915: Fix 'sequence has passed' condition in i915_vblank_swap().

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 376642cf
......@@ -439,7 +439,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
swap.sequence += curseq;
break;
case _DRM_VBLANK_ABSOLUTE:
if ((curseq - swap.sequence) > (1<<23)) {
if ((curseq - swap.sequence) <= (1<<23)) {
spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);
DRM_DEBUG("Missed target sequence\n");
return DRM_ERR(EINVAL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment