mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOSKRNL]
- Add missing user PFN bitmap locking in MmRemoveLRUUserPage svn path=/trunk/; revision=54531
This commit is contained in:
parent
11b737b0e8
commit
63db6b034d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue