Skip to content

Commit

Permalink
drm: i915: Fix 'sequence has passed' condition in i915_vblank_swap().
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
=?utf-8?q?Michel_D=C3=A4nzer?= authored and airlied committed Dec 7, 2006
1 parent 376642c commit 2dbb232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2dbb232

Please sign in to comment.