From fe29dd94bedfb3094deeabe7cbf4e41fd1d23f84 Mon Sep 17 00:00:00 2001 From: augustss Date: Wed, 19 Feb 2003 01:35:04 +0000 Subject: Bail out early in isoc_done if the ii is not on the interrupt list. --- sys/dev/usb/uhci.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 98108775514..90d658462eb 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.169 2003/02/16 23:15:28 augustss Exp $ */ +/* $NetBSD: uhci.c,v 1.170 2003/02/19 01:35:04 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ /* @@ -49,7 +49,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.169 2003/02/16 23:15:28 augustss Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.170 2003/02/19 01:35:04 augustss Exp $"); #include #include @@ -2591,6 +2591,9 @@ uhci_device_isoc_done(usbd_xfer_handle xfer) /* Not on interrupt list, ignore it. */ return; + if (!uhci_active_intr_info(ii)) + return; + #ifdef DIAGNOSTIC if (xfer->busy_free != XFER_BUSY) { printf("uhci_device_isoc_done: xfer=%p not busy 0x%08x\n", -- cgit