mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- MiReserveAlignedSystemPtes: Add missing lock release, spotted by janderwald
svn path=/trunk/; revision=43484
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user