mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[NTOSKRNL]
Make sure APCs are disabled when acquiring MmSectionCommitMutex. svn path=/trunk/; revision=64697
This commit is contained in:
parent
88b05a01ad
commit
62a9101a31
1 changed files with 2 additions and 2 deletions
|
@ -1391,7 +1391,7 @@ MiMapViewOfDataSection(IN PCONTROL_AREA ControlArea,
|
|||
TempPte = Segment->SegmentPteTemplate;
|
||||
|
||||
/* Acquire the commit lock and loop all prototype PTEs to be committed */
|
||||
KeAcquireGuardedMutexUnsafe(&MmSectionCommitMutex);
|
||||
KeAcquireGuardedMutex(&MmSectionCommitMutex);
|
||||
while (PointerPte < LastPte)
|
||||
{
|
||||
/* Make sure the PTE is already invalid */
|
||||
|
@ -1417,7 +1417,7 @@ MiMapViewOfDataSection(IN PCONTROL_AREA ControlArea,
|
|||
ASSERT(Segment->NumberOfCommittedPages <= Segment->TotalNumberOfPtes);
|
||||
|
||||
/* Now that we're done, release the lock */
|
||||
KeReleaseGuardedMutexUnsafe(&MmSectionCommitMutex);
|
||||
KeReleaseGuardedMutex(&MmSectionCommitMutex);
|
||||
}
|
||||
|
||||
/* Is it SEC_BASED, or did the caller manually specify an address? */
|
||||
|
|
Loading…
Reference in a new issue