mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00: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
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue