mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
- MiReserveAlignedSystemPtes: Add missing lock release, spotted by janderwald
svn path=/trunk/; revision=43484
This commit is contained in:
parent
e233c46dec
commit
c199e1e3ee
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,6 @@ MiReserveAlignedSystemPtes(IN ULONG NumberOfPtes,
|
|||
// Decrement the free count and move to the next starting PTE
|
||||
//
|
||||
MmTotalFreeSystemPtes[SystemPtePoolType] -= NumberOfPtes;
|
||||
KeReleaseQueuedSpinLock(LockQueueSystemSpaceLock, OldIrql);
|
||||
PointerPte += (ClusterSize - NumberOfPtes);
|
||||
break;
|
||||
}
|
||||
|
@ -158,8 +157,9 @@ MiReserveAlignedSystemPtes(IN ULONG NumberOfPtes,
|
|||
}
|
||||
|
||||
//
|
||||
// Flush the TLB and return the first PTE
|
||||
// Release the lock, flush the TLB and return the first PTE
|
||||
//
|
||||
KeReleaseQueuedSpinLock(LockQueueSystemSpaceLock, OldIrql);
|
||||
KeFlushProcessTb();
|
||||
return PointerPte;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue