summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>1998-12-14 09:15:19 +0000
committerNick Hibma <n_hibma@FreeBSD.org>1998-12-14 09:15:19 +0000
commit680a2f48d9ada9d4c15da399ce61bf66ba9cb345 (patch)
tree140765e735d87d96064e5d561c70435fa08974ae /sys/dev/usb
parentdef348d45a658fea257fa67c702205dcc880cad0 (diff)
Notes
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ohci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 86bc3ac20f9f..17afe4d7b3df 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -542,6 +542,9 @@ ohci_intr(p)
u_int32_t intrs, eintrs;
ohci_physaddr_t done;
+ /* if attach is failed we get a NULL pointer here
+ * XXX should be removed when pci_unmap_int is implemented
+ */
if ((sc == NULL) || (sc->sc_hcca == NULL))
return (0);