Author: stepan Date: 2009-07-18 17:17:40 +0200 (Sat, 18 Jul 2009) New Revision: 4437
Modified: trunk/payloads/libpayload/drivers/usb/uhci.c Log: Fix off-by-one bug in libpayload UHCI driver
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Myles Watson mylesgw@gmail.com
Modified: trunk/payloads/libpayload/drivers/usb/uhci.c =================================================================== --- trunk/payloads/libpayload/drivers/usb/uhci.c 2009-07-18 14:20:39 UTC (rev 4436) +++ trunk/payloads/libpayload/drivers/usb/uhci.c 2009-07-18 15:17:40 UTC (rev 4437) @@ -141,7 +141,7 @@ 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);