- MiReserveAlignedSystemPtes: Add missing lock release, spotted by janderwald

svn path=/trunk/; revision=43484
This commit is contained in:
Stefan Ginsberg 2009-10-15 18:34:21 +00:00
parent e233c46dec
commit c199e1e3ee

View file

@ -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;
}