mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 18:16:13 +08:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user