mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08: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:
committed by
GitHub
parent
6ae11ba09d
commit
95c340dfb7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user