Skip to content

Commit c685358

Browse files
committed
[NTOS:MM] Fix broken ASSERT
There is no guarantee that all pages in the requested range actually exist.
1 parent 4d605ec commit c685358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ntoskrnl/mm/freelist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress,
318318
// Get the PFN entry for this page
319319
//
320320
Pfn1 = MiGetPfnEntry(Page);
321-
ASSERT(Pfn1);
321+
if (!Pfn1) continue;
322322

323323
//
324324
// Make sure it's free and if this is our first pass, zeroed

0 commit comments

Comments
 (0)