[ros-diffs] [fireball] 20041: Fix for bug #932 (should go into 0.2.9 also)

fireball at svn.reactos.com fireball at svn.reactos.com
Sat Dec 10 20:22:49 CET 2005


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) {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051210/2da89dd7/attachment.html


More information about the Ros-diffs mailing list