[NTOS/MM] Assert there are no RMAP left before freeing the page

This commit is contained in:
Jérôme Gardou 2020-11-17 17:38:53 +01:00
parent d932bdb950
commit ba49c39041

View File

@ -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)
{