mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Verify that allocated resource list is not NULL in IRP_MN_START_DEVICE.
svn path=/trunk/; revision=14524
This commit is contained in:
parent
7b78b8092c
commit
b82483c76c
1 changed files with 11 additions and 1 deletions
|
@ -320,7 +320,17 @@ SerialPnp(
|
|||
Status = STATUS_SUCCESS;
|
||||
break;
|
||||
}
|
||||
/* FIXME: second HACK: verify that we don't have resource conflict,
|
||||
/* FIXME: second HACK: verify that we have some allocated resources.
|
||||
* It seems not to be always the case on some hardware
|
||||
*/
|
||||
if (Stack->Parameters.StartDevice.AllocatedResources == NULL)
|
||||
{
|
||||
DPRINT1("Serial: no allocated resources. Can't start COM%lu\n",
|
||||
((PSERIAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->ComPort);
|
||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
break;
|
||||
}
|
||||
/* FIXME: third HACK: verify that we don't have resource conflict,
|
||||
* because PnP manager doesn't do it automatically
|
||||
*/
|
||||
Status = IoReportResourceForDetection(
|
||||
|
|
Loading…
Reference in a new issue