* Lock address space while deleting the segment and then unlock it. Brought to you by Nikolay Borisov.
CORE-7220 #resolve

svn path=/trunk/; revision=59153
This commit is contained in:
Amine Khaldi 2013-06-02 19:12:22 +00:00
parent be78cf16ca
commit 7bd70fbbf1

View file

@ -819,8 +819,12 @@ MmUnmapViewOfCacheSegment(PMMSUPPORT AddressSpace,
MmGetAddressSpaceOwner(AddressSpace),
MemoryArea->StartingAddress);
MmLockAddressSpace(AddressSpace);
MmFreeMemoryArea(AddressSpace, MemoryArea, MmFreeCacheSectionPage, Context);
MmUnlockAddressSpace(AddressSpace);
MmUnlockSectionSegment(Segment);
DPRINTC("MiUnmapViewOfSegment %p %p %p\n",