diff options
author | joe <joe@FreeBSD.org> | 2002-04-01 21:43:53 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-04-01 21:43:53 +0000 |
commit | 002b2c357ca9501b947e843ab3630648151504a7 (patch) | |
tree | 46cc8569cc7889226c3b74528b48bb8bdd8184dd /sys | |
parent | a650ee5075b5876c3a9e89638f23eb30c8ca4262 (diff) | |
download | FreeBSD-src-002b2c357ca9501b947e843ab3630648151504a7.zip FreeBSD-src-002b2c357ca9501b947e843ab3630648151504a7.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uhci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index cd28c2e..dd8cbf7 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); } |