[NTOS:MM] Remove wrong cleaning of PDEs at session cleanup

This commit is contained in:
Hervé Poussineau 2021-05-25 21:12:41 +02:00
parent 1a1dac04c7
commit 831cad3410

View file

@ -374,8 +374,8 @@ MiDereferenceSession(VOID)
SessionGlobal = MmSessionSpace->GlobalVirtualAddress;
/* Delete all session PDEs and flush the TB */
RtlZeroMemory(MiAddressToPde(MmSessionBase),
BYTES_TO_PAGES(MmSessionSize) * sizeof(MMPDE));
//RtlZeroMemory(MiAddressToPde(MmSessionBase),
// BYTES_TO_PAGES(MmSessionSize) * sizeof(MMPDE));
KeFlushEntireTb(FALSE, FALSE);
/* Clean up the references here. */