]> Git Repo - linux.git/commitdiff
i915: Fix GR register array size off-by-one bug
authorJesse Barnes <[email protected]>
Thu, 7 Feb 2008 19:15:20 +0000 (11:15 -0800)
committerLinus Torvalds <[email protected]>
Thu, 7 Feb 2008 19:35:13 +0000 (11:35 -0800)
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: Jens Axboe <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/char/drm/i915_drv.h

index 37bbf6729b4e699fa5ef66eeadfba3fa2aac07e3..f8308bfb26131ced8c68fa0d5fdf2a1220b1f993 100644 (file)
@@ -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;
This page took 0.05177 seconds and 4 git commands to generate.