Skip to content

Commit 98256a4

Browse files
authored
[NTOS:MM] Allow contiguous-memory frees at DISPATCH_LEVEL (reactos#9349)
MmFreeContiguousMemory() is callable at up to DISPATCH_LEVEL, but MiFreeContiguousMemory() used PAGED_CODE(), which incorrectly asserted above APC_LEVEL in checked builds. Replace it with an assertion that enforces the exported IRQL contract.
1 parent 28373a9 commit 98256a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ntoskrnl/mm/ARM3/contmem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ MiFreeContiguousMemory(IN PVOID BaseAddress)
464464
PFN_NUMBER PageFrameIndex, LastPage, PageCount;
465465
PMMPFN Pfn1, StartPfn;
466466
PMMPTE PointerPte;
467-
PAGED_CODE();
467+
ASSERT_IRQL_LESS_OR_EQUAL(DISPATCH_LEVEL);
468468

469469
//
470470
// First, check if the memory came from initial nonpaged pool, or expansion

0 commit comments

Comments
 (0)