MmReleasePageMemoryConsumer: When giving the page directly to a pending allocation request, zero it first. (Bug 3543)

svn path=/trunk/; revision=34647
This commit is contained in:
Jeffrey Morlan
2008-07-21 21:30:41 +00:00
parent 03764ecabe
commit 4e1f4eaa28
+1
View File
@@ -115,6 +115,7 @@ MmReleasePageMemoryConsumer(ULONG Consumer, PFN_TYPE Page)
Request = CONTAINING_RECORD(Entry, MM_ALLOCATION_REQUEST, ListEntry);
KeReleaseSpinLock(&AllocationListLock, oldIrql);
if(Consumer == MC_USER) MmRemoveLRUUserPage(Page);
MiZeroPage(Page);
Request->Page = Page;
KeSetEvent(&Request->Event, IO_NO_INCREMENT, FALSE);
}