Skip to content

Commit

Permalink
[PATCH] drivers/video/radeonfb.c: fix an array overflow
Browse files Browse the repository at this point in the history
This patch fixes an array overflow found by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed May 1, 2005
1 parent 6e3e98d commit 390725c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/radeonfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 390725c

Please sign in to comment.