mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:25:41 +00:00
[NEWCC]
* 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:
parent
be78cf16ca
commit
7bd70fbbf1
1 changed files with 4 additions and 0 deletions
4
reactos/ntoskrnl/cache/section/data.c
vendored
4
reactos/ntoskrnl/cache/section/data.c
vendored
|
@ -819,8 +819,12 @@ MmUnmapViewOfCacheSegment(PMMSUPPORT AddressSpace,
|
||||||
MmGetAddressSpaceOwner(AddressSpace),
|
MmGetAddressSpaceOwner(AddressSpace),
|
||||||
MemoryArea->StartingAddress);
|
MemoryArea->StartingAddress);
|
||||||
|
|
||||||
|
MmLockAddressSpace(AddressSpace);
|
||||||
|
|
||||||
MmFreeMemoryArea(AddressSpace, MemoryArea, MmFreeCacheSectionPage, Context);
|
MmFreeMemoryArea(AddressSpace, MemoryArea, MmFreeCacheSectionPage, Context);
|
||||||
|
|
||||||
|
MmUnlockAddressSpace(AddressSpace);
|
||||||
|
|
||||||
MmUnlockSectionSegment(Segment);
|
MmUnlockSectionSegment(Segment);
|
||||||
|
|
||||||
DPRINTC("MiUnmapViewOfSegment %p %p %p\n",
|
DPRINTC("MiUnmapViewOfSegment %p %p %p\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue