mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +00:00
[NTOSKRNL]
Lock the workingset before inserting a node into the address space in MiInsertVad svn path=/trunk/; revision=64592
This commit is contained in:
parent
def3dc0080
commit
76f325a78f
1 changed files with 2 additions and 0 deletions
|
@ -190,7 +190,9 @@ MiInsertVad(IN PMMVAD Vad,
|
||||||
ASSERT((Parent != NULL) || (Result == TableEmptyTree));
|
ASSERT((Parent != NULL) || (Result == TableEmptyTree));
|
||||||
|
|
||||||
/* Do the actual insert operation */
|
/* Do the actual insert operation */
|
||||||
|
MiLockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||||
MiInsertNode(&Process->VadRoot, (PVOID)Vad, Parent, Result);
|
MiInsertNode(&Process->VadRoot, (PVOID)Vad, Parent, Result);
|
||||||
|
MiUnlockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue