[NTOSKRNL]

Lock the workingset before inserting a node into the address space in MiInsertVad

svn path=/trunk/; revision=64592
This commit is contained in:
Timo Kreuzer 2014-10-08 00:31:43 +00:00
parent def3dc0080
commit 76f325a78f

View file

@ -190,7 +190,9 @@ MiInsertVad(IN PMMVAD Vad,
ASSERT((Parent != NULL) || (Result == TableEmptyTree));
/* Do the actual insert operation */
MiLockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
MiInsertNode(&Process->VadRoot, (PVOID)Vad, Parent, Result);
MiUnlockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
}
NTSTATUS