mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
[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:
parent
7b23673851
commit
48027a8058
1 changed files with 0 additions and 8 deletions
|
@ -1327,14 +1327,6 @@ MmCleanProcessAddressSpace(IN PEPROCESS Process)
|
||||||
MiUnlockProcessWorkingSetUnsafe(Process, Thread);
|
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 */
|
/* Free the VAD memory */
|
||||||
ExFreePool(Vad);
|
ExFreePool(Vad);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue