Author: sginsberg
Date: Wed Oct 7 22:14:01 2009
New Revision: 43334
URL:
http://svn.reactos.org/svn/reactos?rev=43334&view=rev
Log:
MiReserveSystemPtes: Don't assert that allocation succeeded, just warn if we failed.
All callers of the function handle allocation failure properly.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/syspte.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/syspte.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/syspte.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/syspte.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/syspte.c [iso-8859-1] Wed Oct 7 22:14:01 2009
@@ -170,12 +170,26 @@
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;
}