MiReserveSystemPtes: Don't assert that allocation succeeded, just warn if we failed. All callers of the function handle allocation failure properly.

svn path=/trunk/; revision=43334
This commit is contained in:
Stefan Ginsberg 2009-10-07 20:14:01 +00:00
parent c64b032e93
commit 60a2ad65bb

View file

@ -170,12 +170,26 @@ MiReserveSystemPtes(IN ULONG NumberOfPtes,
IN MMSYSTEM_PTE_POOL_TYPE SystemPtePoolType)
{
PMMPTE PointerPte;
//
// Use the extended function
//
PointerPte = MiReserveAlignedSystemPtes(NumberOfPtes, SystemPtePoolType, 0);
ASSERT(PointerPte != NULL);
//
// Check if allocation failed
//
if (!PointerPte)
{
//
// Warn that we are out of memory
//
DPRINT1("MiReserveSystemPtes: Failed to reserve %lu PTE(s)!\n", NumberOfPtes);
}
//
// Return the PTE Pointer
//
return PointerPte;
}