mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 10:30:10 +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);
|
ExFreeToNPagedLookasideList(&VacbLookasideList, current);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reference it to allow release */
|
||||||
|
CcRosVacbIncRefCount(current);
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -842,8 +845,6 @@ CcRosGetVacb (
|
||||||
{
|
{
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
CcRosVacbIncRefCount(current);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KeAcquireGuardedMutex(&ViewLock);
|
KeAcquireGuardedMutex(&ViewLock);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue