mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Zero out the page in MmTransferOwnershipPage.
svn path=/trunk/; revision=3347
This commit is contained in:
parent
c463dfec1b
commit
e0c35e0076
1 changed files with 3 additions and 2 deletions
|
@ -60,6 +60,7 @@ MmTransferOwnershipPage(PHYSICAL_ADDRESS PhysicalAddress, ULONG NewConsumer)
|
|||
InsertTailList(&UsedPageListHeads[NewConsumer],
|
||||
&MmPageArray[Start].ListEntry);
|
||||
KeReleaseSpinLock(&PageListLock, oldIrql);
|
||||
MiZeroPage(PhysicalAddress);
|
||||
}
|
||||
|
||||
PHYSICAL_ADDRESS
|
||||
|
@ -627,7 +628,7 @@ MmDereferencePage(PHYSICAL_ADDRESS PhysicalAddress)
|
|||
ULONG Start = PhysicalAddress.u.LowPart / PAGESIZE;
|
||||
KIRQL oldIrql;
|
||||
|
||||
DPRINT("MmDereferencePage(PhysicalAddress %x)\n", PhysicalAddress);
|
||||
DPRINT("MmDereferencePage(PhysicalAddress %I64x)\n", PhysicalAddress);
|
||||
|
||||
if (PhysicalAddress.u.LowPart == 0)
|
||||
{
|
||||
|
@ -656,7 +657,7 @@ MmDereferencePage(PHYSICAL_ADDRESS PhysicalAddress)
|
|||
}
|
||||
if (MmPageArray[Start].MapCount != 0)
|
||||
{
|
||||
DbgPrint("Freeing mapped page (0x%x count %d)\n",
|
||||
DbgPrint("Freeing mapped page (0x%I64x count %d)\n",
|
||||
PhysicalAddress, MmPageArray[Start].MapCount);
|
||||
KeBugCheck(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue