https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ba49c3904124501572753…
commit ba49c390412450157275330268bcaab096aa6149
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Tue Nov 17 17:38:53 2020 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 09:41:22 2021 +0100
[NTOS/MM] Assert there are no RMAP left before freeing the page
---
ntoskrnl/mm/rmap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ntoskrnl/mm/rmap.c b/ntoskrnl/mm/rmap.c
index 21b5b246457..80576f4cc59 100644
--- a/ntoskrnl/mm/rmap.c
+++ b/ntoskrnl/mm/rmap.c
@@ -225,9 +225,8 @@ MmPageOutPhysicalAddress(PFN_NUMBER Page)
/* We can finally let this page go */
MmDeleteRmap(Page, Process, Address);
- MmReleasePageMemoryConsumer(MC_USER, Page);
-
ASSERT(MmGetRmapListHeadPage(Page) == NULL);
+ MmReleasePageMemoryConsumer(MC_USER, Page);
if (Address < MmSystemRangeStart)
{