Make the address space mutex unsafe, because sometimes it is acquired at > APC_LEVEL...
authorAlex Ionescu <aionescu@gmail.com>
Sun, 20 Nov 2005 03:16:26 +0000 (03:16 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 20 Nov 2005 03:16:26 +0000 (03:16 +0000)
svn path=/trunk/; revision=19355

reactos/ntoskrnl/mm/aspace.c

index 281c1b4..b79d67b 100644 (file)
@@ -30,7 +30,7 @@ MmLockAddressSpace(PMADDRESS_SPACE AddressSpace)
    {
       return;
    }
-   ExAcquireFastMutex(&AddressSpace->Lock);
+   ExEnterCriticalRegionAndAcquireFastMutexUnsafe(&AddressSpace->Lock);
 }
 
 VOID
@@ -44,7 +44,7 @@ MmUnlockAddressSpace(PMADDRESS_SPACE AddressSpace)
    {
       return;
    }
-   ExReleaseFastMutex(&AddressSpace->Lock);
+   ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(&AddressSpace->Lock);
 }
 
 VOID