fx->lock is used as an index, correct test case.

MFC after:	1 week
This commit is contained in:
Robert Noland
2010-04-28 10:33:41 +00:00
parent 2bd20091e4
commit e7699af0af
+1 -1
View File
@@ -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);