Author: mjmartin
Date: Tue Jun 9 16:50:32 2009
New Revision: 41356
URL:
http://svn.reactos.org/svn/reactos?rev=41356&view=rev
Log:
- MmUnmapViewOfSection: Unlock address space before notifying debugger. Fixes a case where
OllyDbg deadlocks in a GateWait while trying to read virtual memory.
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Tue Jun 9 16:50:32 2009
@@ -4148,10 +4148,11 @@
Status = MmUnmapViewOfSegment(AddressSpace, BaseAddress);
}
+ MmUnlockAddressSpace(AddressSpace);
+
/* Notify debugger */
if (ImageBaseAddress) DbgkUnMapViewOfSection(ImageBaseAddress);
- MmUnlockAddressSpace(AddressSpace);
return(STATUS_SUCCESS);
}