https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c6853581c5203a52cd8825428e56f2cfcfe4c9f5
commit c6853581c5203a52cd8825428e56f2cfcfe4c9f5 Author: Timo Kreuzer <timo.kreu...@reactos.org> AuthorDate: Wed Feb 26 10:33:32 2025 +0200 Commit: Timo Kreuzer <timo.kreu...@reactos.org> CommitDate: Tue Mar 4 15:24:53 2025 +0200 [NTOS:MM] Fix broken ASSERT There is no guarantee that all pages in the requested range actually exist. --- ntoskrnl/mm/freelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/mm/freelist.c b/ntoskrnl/mm/freelist.c index 6f2f99bfc3c..0147fb09a90 100644 --- a/ntoskrnl/mm/freelist.c +++ b/ntoskrnl/mm/freelist.c @@ -318,7 +318,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress, // Get the PFN entry for this page // Pfn1 = MiGetPfnEntry(Page); - ASSERT(Pfn1); + if (!Pfn1) continue; // // Make sure it's free and if this is our first pass, zeroed