[NTOSKRNL]

- Add missing user PFN bitmap locking in MmRemoveLRUUserPage

svn path=/trunk/; revision=54531
This commit is contained in:
Cameron Gutman 2011-11-29 04:22:51 +00:00
parent 11b737b0e8
commit 63db6b034d

View file

@ -121,11 +121,15 @@ VOID
NTAPI
MmRemoveLRUUserPage(PFN_NUMBER Page)
{
KIRQL OldIrql;
/* Unset the page as a user page */
ASSERT(Page != 0);
ASSERT_IS_ROS_PFN(MiGetPfnEntry(Page));
ASSERT(RtlCheckBit(&MiUserPfnBitMap, (ULONG)Page));
OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
RtlClearBit(&MiUserPfnBitMap, (ULONG)Page);
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
}
BOOLEAN