summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorcsapuntz <csapuntz@openbsd.org>2001-03-25 04:26:58 +0000
committercsapuntz <csapuntz@openbsd.org>2001-03-25 04:26:58 +0000
commitff94c01af683ad5b8f940b36554e0a3619a323ed (patch)
tree4a3ba5c30b2a4cfa918a6c179df4939a7b52a147 /sys/dev/usb/uhci.c
parentSupport for several HP scanners; from jmartin@ugrad.cs.ualberta.ca, krw@ ok. (diff)
downloadwireguard-openbsd-ff94c01af683ad5b8f940b36554e0a3619a323ed.tar.xz
wireguard-openbsd-ff94c01af683ad5b8f940b36554e0a3619a323ed.zip
Avoid dereferencing a null pointer
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index e626229beeb..0c77d088058 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.18 2001/01/28 09:43:41 aaron Exp $ */
+/* $OpenBSD: uhci.c,v 1.19 2001/03/25 04:26:58 csapuntz Exp $ */
/* $NetBSD: uhci.c,v 1.125 2000/09/23 21:00:10 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -635,11 +635,9 @@ uhci_allocx(struct usbd_bus *bus)
UXFER(xfer)->iinfo.sc = sc;
#ifdef DIAGNOSTIC
UXFER(xfer)->iinfo.isdone = 1;
+ xfer->busy_free = XFER_BUSY;
#endif
}
-#ifdef DIAGNOSTIC
- xfer->busy_free = XFER_BUSY;
-#endif
return (xfer);
}