mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 21:43:09 +00:00
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:
parent
c64b032e93
commit
60a2ad65bb
1 changed files with 16 additions and 2 deletions
|
@ -175,7 +175,21 @@ MiReserveSystemPtes(IN ULONG NumberOfPtes,
|
||||||
// Use the extended function
|
// Use the extended function
|
||||||
//
|
//
|
||||||
PointerPte = MiReserveAlignedSystemPtes(NumberOfPtes, SystemPtePoolType, 0);
|
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;
|
return PointerPte;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue