diff options
Diffstat (limited to 'sys/dev/drm/via_video.c')
-rw-r--r-- | sys/dev/drm/via_video.c | 2 |
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); |