Fix for bug #932 (should go into 0.2.9 also)

svn path=/trunk/; revision=20041
This commit is contained in:
Aleksey Bragin 2005-12-10 19:22:43 +00:00
parent b1a1d2bbbb
commit e1624c6a81
2 changed files with 5 additions and 2 deletions

View file

@ -312,7 +312,7 @@ ohci_dbg (ohci, "sleeping = %d, disabled = %d\n",
/*-------------------------------------------------------------------------*/
static const struct hc_driver ohci_pci_hc_driver = {
static struct hc_driver ohci_pci_hc_driver = {
.description = hcd_name,
/*

View file

@ -458,7 +458,10 @@ static inline void usbfs_add_device(struct usb_device *dev)
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) {}