diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/ohci.c | 5 | ||||
-rw-r--r-- | sys/dev/usb/uhci.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index b04d617..58986fa 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ohci.c,v 1.101 2001/02/20 15:20:32 minoura Exp $ */ +/* $NetBSD: ohci.c,v 1.111 2001/11/20 21:12:46 augustss Exp $ */ /* $FreeBSD$ */ /* @@ -1056,6 +1056,9 @@ ohci_intr(void *p) { ohci_softc_t *sc = p; + if (sc->sc_dying) + return (0); + /* If we get an interrupt while polling, then just ignore it. */ if (sc->sc_bus.use_polling) { #ifdef DIAGNOSTIC diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 2fc3595..78b3bad 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.144 2001/11/20 13:48:32 augustss Exp $ */ +/* $NetBSD: uhci.c,v 1.146 2001/11/20 21:12:46 augustss Exp $ */ /* $FreeBSD$ */ /* @@ -1151,6 +1151,9 @@ uhci_intr(void *arg) { uhci_softc_t *sc = arg; + if (sc->sc_dying) + return (0); + DPRINTFN(15,("uhci_intr: real interrupt\n")); if (sc->sc_bus.use_polling) { #ifdef DIAGNOSTIC |