mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 21:21:23 +00:00
Assume bus number #0 if not specified in resource list
svn path=/trunk/; revision=24129
This commit is contained in:
parent
2a1513dc5c
commit
b73a685a79
1 changed files with 9 additions and 0 deletions
|
@ -370,6 +370,14 @@ FdoStartDevice(
|
||||||
DPRINT("No allocated resources sent to driver\n");
|
DPRINT("No allocated resources sent to driver\n");
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
/* HACK due to a bug in ACPI driver, which doesn't report the bus number */
|
||||||
|
if (AllocatedResources->Count == 0)
|
||||||
|
{
|
||||||
|
DPRINT1("No bus number resource found (bug in acpi.sys?), assuming bus number #0\n");
|
||||||
|
DeviceExtension->BusNumber = 0;
|
||||||
|
goto next;
|
||||||
|
}
|
||||||
|
/* END HACK */
|
||||||
if (AllocatedResources->Count < 1)
|
if (AllocatedResources->Count < 1)
|
||||||
{
|
{
|
||||||
DPRINT("Not enough allocated resources sent to driver\n");
|
DPRINT("Not enough allocated resources sent to driver\n");
|
||||||
|
@ -405,6 +413,7 @@ FdoStartDevice(
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
next:
|
||||||
InitializeListHead(&DeviceExtension->DeviceListHead);
|
InitializeListHead(&DeviceExtension->DeviceListHead);
|
||||||
KeInitializeSpinLock(&DeviceExtension->DeviceListLock);
|
KeInitializeSpinLock(&DeviceExtension->DeviceListLock);
|
||||||
DeviceExtension->DeviceListCount = 0;
|
DeviceExtension->DeviceListCount = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue