Subject: kern/24542: uhci panics with QUEUEDEBUG
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthew Orgass <darkstar@city-net.com>
List: netbsd-bugs
Date: 02/24/2004 00:25:21
>Number: 24542
>Category: kern
>Synopsis: uhci panics with QUEUEDEBUG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 24 05:32:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: darkstar@city-net.com
>Release: NetBSD 1.6ZK
>Organization:
>Environment:
System: NetBSD jove.city-net.com 1.6ZK NetBSD 1.6ZK (JOVE) #2: Tue Feb 24 09:57:53 UTC 2004 root@jove.city-net.com:/usr/iobj/sys/arch/i386/compile/JOVE i386
Architecture: i386
Machine: i386
>Description:
A system with a uhci device and QUEUEDEBUG panics on boot.
>How-To-Repeat:
>Fix:
Index: sys/dev/usb/uhci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/uhci.c,v
retrieving revision 1.177
diff -u -r1.177 uhci.c
--- sys/dev/usb/uhci.c 29 Dec 2003 08:17:10 -0000 1.177
+++ sys/dev/usb/uhci.c 24 Feb 2004 05:06:43 -0000
@@ -1258,7 +1258,7 @@
uhci_softintr(void *v)
{
uhci_softc_t *sc = v;
- uhci_intr_info_t *ii;
+ uhci_intr_info_t *ii, *nextii;
DPRINTFN(10,("%s: uhci_softintr (%d)\n", USBDEVNAME(sc->sc_bus.bdev),
sc->sc_bus.intr_context));
@@ -1276,8 +1276,10 @@
* We scan all interrupt descriptors to see if any have
* completed.
*/
- for (ii = LIST_FIRST(&sc->sc_intrhead); ii; ii = LIST_NEXT(ii, list))
+ for (ii = LIST_FIRST(&sc->sc_intrhead); ii; ii = nextii) {
+ nextii = LIST_NEXT(ii, list);
uhci_check_intr(sc, ii);
+ }
#ifdef USB_USE_SOFTINTR
if (sc->sc_softwake) {
>Release-Note:
>Audit-Trail:
>Unformatted: