Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2009 17:51:26 +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: r190164 - head/sys/dev/drm
Message-ID:  <200903201751.n2KHpQAi009221@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rnoland
Date: Fri Mar 20 17:51:26 2009
New Revision: 190164
URL: http://svn.freebsd.org/changeset/base/190164

Log:
  Fix what appears to be a typo, and restore the registers correctly.
  
  Found with:	Coverity Prevent(tm)
  CID: 		2454

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

Modified: head/sys/dev/drm/i915_suspend.c
==============================================================================
--- head/sys/dev/drm/i915_suspend.c	Fri Mar 20 17:48:36 2009	(r190163)
+++ head/sys/dev/drm/i915_suspend.c	Fri Mar 20 17:51:26 2009	(r190164)
@@ -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]);



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