From owner-svn-src-stable-7@FreeBSD.ORG Tue Jun 23 15:52:09 2009 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53E771065672; Tue, 23 Jun 2009 15:52:09 +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 413BA8FC0C; Tue, 23 Jun 2009 15:52:09 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5NFq9gW081403; Tue, 23 Jun 2009 15:52:09 GMT (envelope-from rnoland@svn.freebsd.org) Received: (from rnoland@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5NFq9nM081401; Tue, 23 Jun 2009 15:52:09 GMT (envelope-from rnoland@svn.freebsd.org) Message-Id: <200906231552.n5NFq9nM081401@svn.freebsd.org> From: Robert Noland Date: Tue, 23 Jun 2009 15:52:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194723 - in stable/7/sys: . contrib/pf dev/drm X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 15:52:10 -0000 Author: rnoland Date: Tue Jun 23 15:52:08 2009 New Revision: 194723 URL: http://svn.freebsd.org/changeset/base/194723 Log: Merge 190164 from HEAD Fix what appears to be a typo, and restore the registers correctly. Found with: Coverity Prevent(tm) CID: 2454 Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/drm/i915_suspend.c Modified: stable/7/sys/dev/drm/i915_suspend.c ============================================================================== --- stable/7/sys/dev/drm/i915_suspend.c Tue Jun 23 15:50:48 2009 (r194722) +++ stable/7/sys/dev/drm/i915_suspend.c Tue Jun 23 15:52:08 2009 (r194723) @@ -515,7 +515,7 @@ int i915_restore_state(struct drm_device for (i = 0; i < 16; i++) { I915_WRITE(SWF00 + (i << 2), dev_priv->saveSWF0[i]); - I915_WRITE(SWF10 + (i << 2), dev_priv->saveSWF1[i+7]); + I915_WRITE(SWF10 + (i << 2), dev_priv->saveSWF1[i]); } for (i = 0; i < 3; i++) I915_WRITE(SWF30 + (i << 2), dev_priv->saveSWF2[i]);