From 219cece2f5a90874dc233a31bd4f53c98831fac2 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 18 Jul 2009 15:17:40 +0000 Subject: Fix off-by-one bug in libpayload UHCI driver Signed-off-by: Stefan Reinauer Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4437 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/drivers/usb/uhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads') diff --git a/payloads/libpayload/drivers/usb/uhci.c b/payloads/libpayload/drivers/usb/uhci.c index 612fc7f199..198b6c0846 100644 --- a/payloads/libpayload/drivers/usb/uhci.c +++ b/payloads/libpayload/drivers/usb/uhci.c @@ -141,7 +141,7 @@ uhci_init (pcidev_t addr) controller->create_intr_queue = uhci_create_intr_queue; controller->destroy_intr_queue = uhci_destroy_intr_queue; controller->poll_intr_queue = uhci_poll_intr_queue; - for (i = 1; i < 128; i++) { + for (i = 0; i < 128; i++) { controller->devices[i] = 0; } init_device_entry (controller, 0); -- cgit v1.2.3