summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/via_video.c
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2010-04-28 10:33:41 +0000
committerrnoland <rnoland@FreeBSD.org>2010-04-28 10:33:41 +0000
commitc86e821ecb2a324088edbbb87198b4d55833575a (patch)
tree617ff2998b84c00ac594dd4b7b383fa10d6354af /sys/dev/drm/via_video.c
parent47b1b89a950518d81f6325cff900426303029b36 (diff)
downloadFreeBSD-src-c86e821ecb2a324088edbbb87198b4d55833575a.zip
FreeBSD-src-c86e821ecb2a324088edbbb87198b4d55833575a.tar.gz
fx->lock is used as an index, correct test case.
MFC after: 1 week
Diffstat (limited to 'sys/dev/drm/via_video.c')
-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