From 4e1f4eaa2873720df88b304f6a9125267d635c83 Mon Sep 17 00:00:00 2001 From: Jeffrey Morlan Date: Mon, 21 Jul 2008 21:30:41 +0000 Subject: [PATCH] MmReleasePageMemoryConsumer: When giving the page directly to a pending allocation request, zero it first. (Bug 3543) svn path=/trunk/; revision=34647 --- reactos/ntoskrnl/mm/balance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/ntoskrnl/mm/balance.c b/reactos/ntoskrnl/mm/balance.c index 7baf62930c0..03608ea3086 100644 --- a/reactos/ntoskrnl/mm/balance.c +++ b/reactos/ntoskrnl/mm/balance.c @@ -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); }