svn commit: r207318 - head/sys/dev/drm

Robert Noland rnoland at FreeBSD.org
Wed Apr 28 10:33:41 UTC 2010


Author: rnoland
Date: Wed Apr 28 10:33:41 2010
New Revision: 207318
URL: http://svn.freebsd.org/changeset/base/207318

Log:
  fx->lock is used as an index, correct test case.
  
  MFC after:	1 week

Modified:
  head/sys/dev/drm/via_video.c

Modified: head/sys/dev/drm/via_video.c
==============================================================================
--- head/sys/dev/drm/via_video.c	Wed Apr 28 10:03:54 2010	(r207317)
+++ head/sys/dev/drm/via_video.c	Wed Apr 28 10:33:41 2010	(r207318)
@@ -78,7 +78,7 @@ int via_decoder_futex(struct drm_device 
 
 	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);


More information about the svn-src-all mailing list