Author: akhaldi
Date: Sun Jun 2 19:12:22 2013
New Revision: 59153
URL:
http://svn.reactos.org/svn/reactos?rev=59153&view=rev
Log:
[NEWCC]
* Lock address space while deleting the segment and then unlock it. Brought to you by
Nikolay Borisov.
CORE-7220 #resolve
Modified:
trunk/reactos/ntoskrnl/cache/section/data.c
Modified: trunk/reactos/ntoskrnl/cache/section/data.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cache/section/dat…
==============================================================================
--- trunk/reactos/ntoskrnl/cache/section/data.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cache/section/data.c [iso-8859-1] Sun Jun 2 19:12:22 2013
@@ -819,7 +819,11 @@
MmGetAddressSpaceOwner(AddressSpace),
MemoryArea->StartingAddress);
+ MmLockAddressSpace(AddressSpace);
+
MmFreeMemoryArea(AddressSpace, MemoryArea, MmFreeCacheSectionPage, Context);
+
+ MmUnlockAddressSpace(AddressSpace);
MmUnlockSectionSegment(Segment);