PERFORCE change 143366 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Jun 12 11:34:28 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=143366
Change 143366 by hselasky at hselasky_laptop001 on 2008/06/12 11:34:18
Fix scanning of configuration indexes higher than 0.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#106 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#106 (text+ko) ====
@@ -1543,6 +1543,7 @@
uint8_t nconfig;
uint8_t config;
uint8_t i;
+ uint8_t j;
if (udev == NULL) {
PRINTF(("udev == NULL\n"));
@@ -1619,15 +1620,15 @@
if (iface_index != USB_IFACE_INDEX_ANY) {
i = iface_index;
- iface_index = i + 1;
+ j = i + 1;
} else {
i = 0;
- iface_index = USB_MAX_INTERFACES;
+ j = USB_MAX_INTERFACES;
}
/* do the probe and attach */
- for (; i != iface_index; i++) {
+ for (; i != j; i++) {
iface = usbd_get_iface(udev, i);
if (iface == NULL) {
More information about the p4-projects
mailing list