mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +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:
@@ -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