mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[NTOS:MM] Fix MiInsertSharedUserPageVad preventing boot on x64
Fix MiInsertSharedUserPageVad to not charge the system process pool quota. Even though PsChargeProcessNonPagedPoolQuota itself checks if the process specified is the system process, this doesn't work here as we're too early into boot for the kernel to know what the system process is.
This commit is contained in:
parent
96d137a559
commit
cc99b9d96e
1 changed files with 8 additions and 5 deletions
|
@ -901,12 +901,15 @@ MiInsertSharedUserPageVad(
|
|||
return Status;
|
||||
}
|
||||
|
||||
Status = PsChargeProcessNonPagedPoolQuota(Process, sizeof(MMVAD_LONG));
|
||||
if (!NT_SUCCESS(Status))
|
||||
if (Process->QuotaBlock != NULL)
|
||||
{
|
||||
DPRINT1("Ran out of quota.\n");
|
||||
ExFreePoolWithTag(Vad, 'ldaV');
|
||||
return Status;
|
||||
Status = PsChargeProcessNonPagedPoolQuota(Process, sizeof(MMVAD_LONG));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Ran out of quota.\n");
|
||||
ExFreePoolWithTag(Vad, 'ldaV');
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue