From owner-p4-projects@FreeBSD.ORG Thu Jun 12 11:34:28 2008 Return-Path: <owner-p4-projects@FreeBSD.ORG> Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4E5761065671; Thu, 12 Jun 2008 11:34:28 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F92D1065675 for <perforce@FreeBSD.org>; Thu, 12 Jun 2008 11:34:28 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0049D8FC13 for <perforce@FreeBSD.org>; Thu, 12 Jun 2008 11:34:28 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m5CBYRpt028791 for <perforce@FreeBSD.org>; Thu, 12 Jun 2008 11:34:27 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m5CBYRwb028789 for perforce@freebsd.org; Thu, 12 Jun 2008 11:34:27 GMT (envelope-from hselasky@FreeBSD.org) Date: Thu, 12 Jun 2008 11:34:27 GMT Message-Id: <200806121134.m5CBYRwb028789@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Cc: Subject: PERFORCE change 143366 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes <p4-projects.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>, <mailto:p4-projects-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/p4-projects> List-Post: <mailto:p4-projects@freebsd.org> List-Help: <mailto:p4-projects-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>, <mailto:p4-projects-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 12 Jun 2008 11:34:28 -0000 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) {