PERFORCE change 159928 for review

Hans Petter Selasky hselasky at FreeBSD.org
Fri Mar 27 14:41:26 PDT 2009


http://perforce.freebsd.org/chv.cgi?CH=159928

Change 159928 by hselasky at hselasky_laptop001 on 2009/03/27 21:41:22

	
	USB core:
	 - fix for early explore calls

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_hub.c#11 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_hub.c#11 (text+ko) ====

@@ -1393,6 +1393,11 @@
 		DPRINTF("No bus pointer!\n");
 		return;
 	}
+	if ((bus->devices == NULL) ||
+	    (bus->devices[USB_ROOT_HUB_ADDR] == NULL)) {
+		DPRINTF("No root HUB\n");
+		return;
+	}
 	if (mtx_owned(&bus->bus_mtx)) {
 		do_unlock = 0;
 	} else {


More information about the p4-projects mailing list