- Also copy AllocatedResources from the stack to NdisMiniportBlock.Resources

svn path=/trunk/; revision=40706
This commit is contained in:
Cameron Gutman 2009-04-26 05:35:24 +00:00
parent d46c77f118
commit 6fff9d423e

View file

@ -1727,6 +1727,19 @@ NdisIPnPStartDevice(
return STATUS_INSUFFICIENT_RESOURCES;
}
Adapter->NdisMiniportBlock.Resources =
ExAllocatePool(PagedPool, ResourceListSize);
if (!Adapter->NdisMiniportBlock.Resources)
{
ExFreePool(Adapter->NdisMiniportBlock.AllocatedResources);
ExInterlockedRemoveEntryList(&Adapter->ListEntry, &AdapterListLock);
return STATUS_INSUFFICIENT_RESOURCES;
}
RtlCopyMemory(Adapter->NdisMiniportBlock.Resources,
Stack->Parameters.StartDevice.AllocatedResources,
ResourceListSize);
RtlCopyMemory(Adapter->NdisMiniportBlock.AllocatedResources,
Stack->Parameters.StartDevice.AllocatedResources,
ResourceListSize);