https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2a0e996c9d350987e4942…
commit 2a0e996c9d350987e4942f2a6af53500fc87c53d
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Mar 18 13:16:05 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Mar 18 13:21:54 2018 +0100
[NTOSKRNL] In CcRosInternalFreeVacb(), in case of invalid free, also print file name.
CORE-14481
CORE-14480
CORE-14482
---
ntoskrnl/cc/view.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 24be8cb7aa..6a295504c3 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -939,6 +939,10 @@ CcRosInternalFreeVacb (
if (Vacb->PinCount != 0 || Vacb->ReferenceCount != 0)
{
DPRINT1("Invalid free: %ld, %ld\n", Vacb->ReferenceCount,
Vacb->PinCount);
+ if (Vacb->SharedCacheMap->FileObject &&
Vacb->SharedCacheMap->FileObject->FileName.Length)
+ {
+ DPRINT1("For file: %wZ\n",
&Vacb->SharedCacheMap->FileObject->FileName);
+ }
}
ASSERT(Vacb->PinCount == 0);