mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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");
|
DPRINT("CcRosCreateVacb()\n");
|
||||||
|
|
||||||
current = ExAllocateFromNPagedLookasideList(&VacbLookasideList);
|
current = ExAllocateFromNPagedLookasideList(&VacbLookasideList);
|
||||||
|
if (!current)
|
||||||
|
{
|
||||||
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
}
|
||||||
current->BaseAddress = NULL;
|
current->BaseAddress = NULL;
|
||||||
current->Dirty = FALSE;
|
current->Dirty = FALSE;
|
||||||
current->PageOut = FALSE;
|
current->PageOut = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue