Fix for bug #932 (should go into 0.2.9 also)
Modified: trunk/reactos/drivers/usb/miniport/usbohci/ohci-pci.c
Modified: trunk/reactos/drivers/usb/usbport/hcd.h

Modified: trunk/reactos/drivers/usb/miniport/usbohci/ohci-pci.c
--- trunk/reactos/drivers/usb/miniport/usbohci/ohci-pci.c	2005-12-10 17:09:35 UTC (rev 20040)
+++ trunk/reactos/drivers/usb/miniport/usbohci/ohci-pci.c	2005-12-10 19:22:43 UTC (rev 20041)
@@ -312,7 +312,7 @@
 
 /*-------------------------------------------------------------------------*/
 
-static const struct hc_driver ohci_pci_hc_driver = {
+static struct hc_driver ohci_pci_hc_driver = {
 	.description =		hcd_name,
 
 	/*

Modified: trunk/reactos/drivers/usb/usbport/hcd.h
--- trunk/reactos/drivers/usb/usbport/hcd.h	2005-12-10 17:09:35 UTC (rev 20040)
+++ trunk/reactos/drivers/usb/usbport/hcd.h	2005-12-10 19:22:43 UTC (rev 20041)
@@ -458,7 +458,10 @@
 	if (dev->parent)
 	{
 		PDEVICE_OBJECT Pdo = (PDEVICE_OBJECT)dev->parent->dev.dev_ext;
-		IoInvalidateDeviceRelations(Pdo, BusRelations);
+		if (Pdo)
+			IoInvalidateDeviceRelations(Pdo, BusRelations);
+		else
+			DPRINT1("Pdo == NULL, not sending IoInvalidateDeviceRelations()!");
 	}
 }
 static inline void usbfs_remove_device(struct usb_device *dev) {}