diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-05-01 08:59:30 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 08:59:30 -0700 |
commit | 390725c36d220f5ca0c13b8927ac9c758ae1e4ad (patch) | |
tree | 9b7a13d734992cbee48588ab241e01baeb486b44 /drivers/video/radeonfb.c | |
parent | 6e3e98d1dcf944b999757b769d910f2b506ca5b9 (diff) | |
download | kernel_samsung_smdk4412-390725c36d220f5ca0c13b8927ac9c758ae1e4ad.zip kernel_samsung_smdk4412-390725c36d220f5ca0c13b8927ac9c758ae1e4ad.tar.gz kernel_samsung_smdk4412-390725c36d220f5ca0c13b8927ac9c758ae1e4ad.tar.bz2 |
[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 <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/radeonfb.c')
-rw-r--r-- | drivers/video/radeonfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/radeonfb.c b/drivers/video/radeonfb.c index d9a084e..c463870 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++) |