summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/drm/via_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/via_video.c b/sys/dev/drm/via_video.c
index f903cf5..3bd9605 100644
--- a/sys/dev/drm/via_video.c
+++ b/sys/dev/drm/via_video.c
@@ -78,7 +78,7 @@ int via_decoder_futex(struct drm_device *dev, void *data, struct drm_file *file_
DRM_DEBUG("\n");
- if (fx->lock > VIA_NR_XVMC_LOCKS)
+ if (fx->lock >= VIA_NR_XVMC_LOCKS)
return -EFAULT;
lock = (volatile int *)XVMCLOCKPTR(sAPriv, fx->lock);
OpenPOWER on IntegriCloud