* [2.6 patch] video/aty/atyfb_base.c: fix an off-by-one error
@ 2006-04-04 18:54 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-04-04 18:54 UTC (permalink / raw)
To: adaplas; +Cc: linux-fbdev-devel, linux-kernel
This patch fixes an obvious of-by-one error spotted by the Coverity
checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.17-rc1-mm1-full/drivers/video/aty/atyfb_base.c.old 2006-04-04 20:20:18.000000000 +0200
+++ linux-2.6.17-rc1-mm1-full/drivers/video/aty/atyfb_base.c 2006-04-04 20:20:33.000000000 +0200
@@ -3400,7 +3400,7 @@ static int __devinit atyfb_pci_probe(str
struct atyfb_par *par;
int i, rc = -ENOMEM;
- for (i = ARRAY_SIZE(aty_chips); i >= 0; i--)
+ for (i = ARRAY_SIZE(aty_chips) - 1; i >= 0; i--)
if (pdev->device == aty_chips[i].pci_id)
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-04 18:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-04 18:54 [2.6 patch] video/aty/atyfb_base.c: fix an off-by-one error Adrian Bunk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.