diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c index 7c13afb3220..f35d5c227c2 100644 --- a/ntoskrnl/cc/view.c +++ b/ntoskrnl/cc/view.c @@ -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;