Message ID | 51C26B15.3090800@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- linux-next-20130619.orig/drivers/video/aty/atyfb_base.c +++ linux-next-20130619/drivers/video/aty/atyfb_base.c @@ -434,8 +434,8 @@ static int correct_chipset(struct atyfb_ const char *name; int i; - for (i = ARRAY_SIZE(aty_chips) - 1; i >= 0; i--) - if (par->pci_id == aty_chips[i].pci_id) + for (i = ARRAY_SIZE(aty_chips); i > 0; i--) + if (par->pci_id == aty_chips[i - 1].pci_id) break; if (i < 0)