mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTOS:CC] CcRosCreateVacb: Return error code on pool allocation failure (#7275)
Return STATUS_INSUFFICIENT_RESOURCES error code instead of accessing the invalid pointer.
This commit is contained in:
parent
6ae11ba09d
commit
95c340dfb7
1 changed files with 4 additions and 0 deletions
|
@ -812,6 +812,10 @@ CcRosCreateVacb (
|
|||
DPRINT("CcRosCreateVacb()\n");
|
||||
|
||||
current = ExAllocateFromNPagedLookasideList(&VacbLookasideList);
|
||||
if (!current)
|
||||
{
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
current->BaseAddress = NULL;
|
||||
current->Dirty = FALSE;
|
||||
current->PageOut = FALSE;
|
||||
|
|
Loading…
Reference in a new issue