From owner-svn-src-all@FreeBSD.ORG Wed Apr 28 10:33:41 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6C5C106564A; Wed, 28 Apr 2010 10:33:41 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 95E258FC08; Wed, 28 Apr 2010 10:33:41 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o3SAXfW3001265; Wed, 28 Apr 2010 10:33:41 GMT (envelope-from rnoland@svn.freebsd.org) Received: (from rnoland@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o3SAXf6r001263; Wed, 28 Apr 2010 10:33:41 GMT (envelope-from rnoland@svn.freebsd.org) Message-Id: <201004281033.o3SAXf6r001263@svn.freebsd.org> From: Robert Noland Date: Wed, 28 Apr 2010 10:33:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r207318 - head/sys/dev/drm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 10:33:41 -0000 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);