From dd355d54553456e5f5094dcb4d624210551173ea Mon Sep 17 00:00:00 2001 From: Josef Karthauser Date: Mon, 1 Apr 2002 21:43:53 +0000 Subject: 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. --- sys/dev/usb/uhci.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys') 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); } -- cgit v1.2.3