https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0899f4b2b174f04c88c7d…
commit 0899f4b2b174f04c88c7dedac2854a9d10d5e738
Author: Thamatip Chitpong <thamatip.chitpong(a)reactos.org>
AuthorDate: Fri Jun 28 21:16:14 2024 +0700
Commit: Thamatip Chitpong <thamatip.chitpong(a)reactos.org>
CommitDate: Wed Jul 31 18:07:49 2024 +0700
[NTOS:CC] CcFlushCache: Call CcRosReleaseVacb when CcRosFlushVacb fails
CcRosLookupVacb adds a refcount.
---
ntoskrnl/cc/view.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 4e72ca6b040..90b644560e2 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -1160,6 +1160,7 @@ CcFlushCache (
Status = CcRosFlushVacb(vacb, &VacbIosb);
if (!NT_SUCCESS(Status))
{
+ CcRosReleaseVacb(SharedCacheMap, vacb, FALSE, FALSE);
goto quit;
}
DirtyVacb = TRUE;