Module Name: src Committed By: jmcneill Date: Sun Aug 7 13:45:46 UTC 2011
Modified Files: src/sys/dev/usb: ohci.c Log Message: PR# kern/30398: panic in ohci_softintr If the host controller has a TD that the driver doesn't know about, ignore it instead of calling panic. Patch from Karl Janmar. To generate a diff of this commit: cvs rdiff -u -r1.217 -r1.218 src/sys/dev/usb/ohci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/ohci.c diff -u src/sys/dev/usb/ohci.c:1.217 src/sys/dev/usb/ohci.c:1.218 --- src/sys/dev/usb/ohci.c:1.217 Sat Jul 30 20:05:36 2011 +++ src/sys/dev/usb/ohci.c Sun Aug 7 13:45:46 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ohci.c,v 1.217 2011/07/30 20:05:36 jmcneill Exp $ */ +/* $NetBSD: ohci.c,v 1.218 2011/08/07 13:45:46 jmcneill Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ /* @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.217 2011/07/30 20:05:36 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.218 2011/08/07 13:45:46 jmcneill Exp $"); #include "opt_usb.h" @@ -1293,7 +1293,9 @@ DPRINTFN(5,("add ITD %p\n", sitd)); continue; } - panic("ohci_softintr: addr 0x%08lx not found", (u_long)done); + device_printf(sc->sc_dev, "WARNING: addr 0x%08lx not found\n", + (u_long)done); + break; } DPRINTFN(10,("ohci_softintr: sdone=%p sidone=%p\n", sdone, sidone));