diff options
author | rnoland <rnoland@FreeBSD.org> | 2010-04-28 10:33:41 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2010-04-28 10:33:41 +0000 |
commit | c86e821ecb2a324088edbbb87198b4d55833575a (patch) | |
tree | 617ff2998b84c00ac594dd4b7b383fa10d6354af | |
parent | 47b1b89a950518d81f6325cff900426303029b36 (diff) | |
download | FreeBSD-src-c86e821ecb2a324088edbbb87198b4d55833575a.zip FreeBSD-src-c86e821ecb2a324088edbbb87198b4d55833575a.tar.gz |
fx->lock is used as an index, correct test case.
MFC after: 1 week
-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); |