Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 123f794f authored by Jesse Barnes's avatar Jesse Barnes Committed by Linus Torvalds
Browse files

i915: Fix GR register array size off-by-one bug



Make sure we have enough room for all the GR registers or we'll end up
clobbering the AR index register (which should actually be harmless
unless the BIOS is making an assumption about it).

Noticed-by: default avatarJens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarJesse Barnes <jesse.barnes@intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0afc2edf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ typedef struct drm_i915_private {
	u32 saveSWF2[3];
	u8 saveMSR;
	u8 saveSR[8];
	u8 saveGR[24];
	u8 saveGR[25];
	u8 saveAR_INDEX;
	u8 saveAR[20];
	u8 saveDACMASK;