aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2002-04-01 21:43:53 +0000
committerJosef Karthauser <joe@FreeBSD.org>2002-04-01 21:43:53 +0000
commitdd355d54553456e5f5094dcb4d624210551173ea (patch)
tree46cc8569cc7889226c3b74528b48bb8bdd8184dd /sys
parentcf78a5199e66f0358ad12ebd7921580a19fcf9ba (diff)
downloadsrc-dd355d54553456e5f5094dcb4d624210551173ea.tar.gz
src-dd355d54553456e5f5094dcb4d624210551173ea.zip
MFNetBSD:
revision 1.135 date: 2001/04/01 14:59:52; author: augustss; state: Exp; lines: +2 -4 Avoid a potential null pointer dereference. From OpenBSD.
Notes
Notes: svn path=/head/; revision=93598
Diffstat (limited to 'sys')
-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 cd28c2e48ae7..dd8cbf7078ea 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: uhci.c,v 1.134 2001/03/25 22:52:21 augustss Exp $ */
+/* $NetBSD: uhci.c,v 1.135 2001/04/01 14:59:52 augustss Exp $ */
/* $FreeBSD$ */
/*
@@ -629,11 +629,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);
}