mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00: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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user