Date: Thu, 18 Jan 2007 10:08:01 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 113101 for review Message-ID: <200701181008.l0IA810Z031551@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113101 Change 113101 by hselasky@hselasky_mini_itx on 2007/01/18 10:07:13 If the number of devices changed during list traversal, set "count" to the lowest value. Affected files ... .. //depot/projects/usb/src/sys/kern/subr_bus.c#4 edit Differences ... ==== //depot/projects/usb/src/sys/kern/subr_bus.c#4 (text+ko) ==== @@ -1876,13 +1876,16 @@ TAILQ_FOREACH(child, &dev->children, link) { if (n < count) { list[n] = child; - n++; } + n++; } if (n != count) { printf("device_get_children: Number of devices changed " "from %d to %d!\n", count, n); + if (n < count) { + count = n; + } } *devlistp = list;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701181008.l0IA810Z031551>