[NTOS]: Release the *right* lock. "Fix the fix" as the yuppies say.
authorSir Richard <sir_richard@svn.reactos.org>
Sun, 4 Mar 2012 03:18:47 +0000 (03:18 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Sun, 4 Mar 2012 03:18:47 +0000 (03:18 +0000)
svn path=/trunk/; revision=55988

reactos/ntoskrnl/mm/ARM3/virtual.c

index 0b070a9..a013373 100644 (file)
@@ -4068,7 +4068,7 @@ FinalPath:
     // return whatever failure code was sent.
     //
 FailPath:
-    MiUnlockWorkingSet(CurrentThread, AddressSpace);
+    MmUnlockAddressSpace(AddressSpace);
     if (Attached) KeUnstackDetachProcess(&ApcState);
     if (ProcessHandle != NtCurrentProcess()) ObDereferenceObject(Process);
     return Status;