[NTOSKNRL] Always reference a newly created VACB

This allows being consistent between newly created and looked up
so that VACB can always safely be released.

Should really help with reference issues.

CORE-14481
CORE-14480
CORE-14482
This commit is contained in:
Pierre Schweitzer 2018-03-18 18:14:17 +01:00
parent 342c404c00
commit 1e579843bc
No known key found for this signature in database
GPG Key ID: 7545556C3D585B0B

View File

@ -808,6 +808,9 @@ CcRosCreateVacb (
ExFreeToNPagedLookasideList(&VacbLookasideList, current);
}
/* Reference it to allow release */
CcRosVacbIncRefCount(current);
return Status;
}
@ -842,8 +845,6 @@ CcRosGetVacb (
{
return Status;
}
CcRosVacbIncRefCount(current);
}
KeAcquireGuardedMutex(&ViewLock);