diff --git a/reactos/ntoskrnl/mm/rmap.c b/reactos/ntoskrnl/mm/rmap.c index 2c3e16002d5..402706b0656 100644 --- a/reactos/ntoskrnl/mm/rmap.c +++ b/reactos/ntoskrnl/mm/rmap.c @@ -463,6 +463,7 @@ MmDeleteAllRmaps(PFN_TYPE Page, PVOID Context, KEBUGCHECK(0); } MmSetRmapListHeadPage(Page, NULL); + ExReleaseFastMutex(&RmapListLock); while (current_entry != NULL) { previous_entry = current_entry; @@ -483,7 +484,6 @@ MmDeleteAllRmaps(PFN_TYPE Page, PVOID Context, InterlockedExchangeAddUL(&Process->Vm.WorkingSetSize, -PAGE_SIZE); } } - ExReleaseFastMutex(&RmapListLock); } VOID