From: Adrian Bunk Date: Sun, 1 May 2005 15:59:30 +0000 (-0700) Subject: [PATCH] drivers/video/radeonfb.c: fix an array overflow X-Git-Tag: v2.6.12-rc4~136^2~16 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=390725c36d220f5ca0c13b8927ac9c758ae1e4ad;p=linux-2.6 [PATCH] drivers/video/radeonfb.c: fix an array overflow This patch fixes an array overflow found by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/radeonfb.c b/drivers/video/radeonfb.c index d9a084e77a..c46387024b 100644 --- a/drivers/video/radeonfb.c +++ b/drivers/video/radeonfb.c @@ -2107,7 +2107,7 @@ static void radeon_write_mode (struct radeonfb_info *rinfo, if (rinfo->arch == RADEON_M6) { - for (i=0; i<8; i++) + for (i=0; i<7; i++) OUTREG(common_regs_m6[i].reg, common_regs_m6[i].val); } else { for (i=0; i<9; i++)