[NTOS:MM] Remove obsolete code path

In MmCleanProcessAddressSpace we already delete VADs that are RosMm memory areas by calling MiRosCleanupMemoryArea, so we never reach the later check. This code path is from a time when VADs and memory areas lived in different tables, which is no longer the case.
This commit is contained in:
Timo Kreuzer 2024-04-06 10:21:33 +03:00
parent 7b23673851
commit 48027a8058

View file

@ -1327,14 +1327,6 @@ MmCleanProcessAddressSpace(IN PEPROCESS Process)
MiUnlockProcessWorkingSetUnsafe(Process, Thread);
}
/* Skip ARM3 fake VADs, they'll be freed by MmDeleteProcessAddresSpace */
if (Vad->u.VadFlags.Spare == 1)
{
/* Set a flag so MmDeleteMemoryArea knows to free, but not to remove */
Vad->u.VadFlags.Spare = 2;
continue;
}
/* Free the VAD memory */
ExFreePool(Vad);