drm/i915: Fix read outside array bounds in restoring the SWF10 range.
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 25 Jul 2009 22:50:38 +0000 (00:50 +0200)
committerEric Anholt <eric@anholt.net>
Wed, 5 Aug 2009 18:21:29 +0000 (11:21 -0700)
commit819e0064634f580ab618189e657ea58341d214b7
tree4b3bc501613ef3dbbaed592f0e6935fe035399f4
parent9c9fe1f841745184bbc5460c6f3909fded3b929b
drm/i915: Fix read outside array bounds in restoring the SWF10 range.

dev_priv->saveSWF1 is a 16 element array, but this reads up to index 22,
and restored values from the wrong registers.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_suspend.c