Date: Thu, 12 Jun 2008 11:34:27 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 143366 for review Message-ID: <200806121134.m5CBYRwb028789@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143366 Change 143366 by hselasky@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806121134.m5CBYRwb028789>