mirror of
https://github.com/reactos/reactos.git
synced 2024-12-05 01:13:31 +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:
parent
342c404c00
commit
1e579843bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user