mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
drm: i915: Fix 'sequence has passed' condition in i915_vblank_swap().
Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
376642cf2e
commit
2dbb232c4d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue