mirror of
https://github.com/reactos/reactos.git
synced 2024-12-22 18:43:30 +08:00
[NTOS:MM]
- Do not request a page in MiAllocatePagesForMdl if no pages are available. Fixes kmtest:MmMdl. CORE-9879 #resolve svn path=/trunk/; revision=68274
This commit is contained in:
parent
09da0e3011
commit
85c2fc1bcd
@ -232,7 +232,12 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress,
|
||||
/* Grab a page */
|
||||
MI_SET_USAGE(MI_USAGE_MDL);
|
||||
MI_SET_PROCESS2("Kernel");
|
||||
Page = MiRemoveAnyPage(0);
|
||||
|
||||
/* FIXME: This check should be smarter */
|
||||
Page = 0;
|
||||
if (MmAvailablePages != 0)
|
||||
Page = MiRemoveAnyPage(0);
|
||||
|
||||
if (Page == 0)
|
||||
{
|
||||
/* This is not good... hopefully we have at least SOME pages */
|
||||
|
Loading…
Reference in New Issue
Block a user