Author: tkreuzer
Date: Wed Oct 8 00:31:43 2014
New Revision: 64592
URL:
http://svn.reactos.org/svn/reactos?rev=64592&view=rev
Log:
[NTOSKRNL]
Lock the workingset before inserting a node into the address space in MiInsertVad
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] Wed Oct 8 00:31:43 2014
@@ -190,7 +190,9 @@
ASSERT((Parent != NULL) || (Result == TableEmptyTree));
/* Do the actual insert operation */
+ MiLockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
MiInsertNode(&Process->VadRoot, (PVOID)Vad, Parent, Result);
+ MiUnlockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
}
NTSTATUS