[NTOSKRNL] Don't dereference VACB when allocating its memory area fails

This avoids performing a double-free (even though that's hidden by the
fact we use lookaside allocations for VACB), and it avoids freeing
a memory address at an uninitialized address.
We don't care about references here, the VACB was just allocated, never
linked and we're its only user.

CORE-15413
This commit is contained in:
Pierre Schweitzer 2018-12-08 19:51:30 +01:00
parent 60e9fcc8f0
commit 182cc5c5ab
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -833,7 +833,6 @@ Retry:
goto Retry;
}
CcRosVacbDecRefCount(current);
ExFreeToNPagedLookasideList(&VacbLookasideList, current);
return Status;
}