Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2010 10:33:41 +0000 (UTC)
From:      Robert Noland <rnoland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207318 - head/sys/dev/drm
Message-ID:  <201004281033.o3SAXf6r001263@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004281033.o3SAXf6r001263>