projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NTOSKNRL] Always reference a newly created VACB
[reactos.git]
/
ntoskrnl
/
cc
/
view.c
diff --git
a/ntoskrnl/cc/view.c
b/ntoskrnl/cc/view.c
index
6a29550
..
e896c57
100644
(file)
--- a/
ntoskrnl/cc/view.c
+++ b/
ntoskrnl/cc/view.c
@@
-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);