From 558bc63003916b72bee04ca405fe0e02086734a3 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 6 Dec 2005 18:39:17 +0000 Subject: [PATCH] Release the rmap list lock after cleaning the head entry in MmDeleteAllRmaps. This may fix bug #1071. svn path=/trunk/; revision=19932 --- reactos/ntoskrnl/mm/rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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