[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Tue, 29 Nov 2011 04:22:51 +0000 (04:22 +0000)
committerCameron Gutman <aicommander@gmail.com>
Tue, 29 Nov 2011 04:22:51 +0000 (04:22 +0000)
- Add missing user PFN bitmap locking in MmRemoveLRUUserPage

svn path=/trunk/; revision=54531

reactos/ntoskrnl/mm/freelist.c

index f8efc07..308c323 100644 (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