https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e6ca3952e08f55ae2ff137e58b1f6715dbf3b481

commit e6ca3952e08f55ae2ff137e58b1f6715dbf3b481
Author:     Doug Lyons <[email protected]>
AuthorDate: Sat Aug 12 12:10:34 2023 -0500
Commit:     GitHub <[email protected]>
CommitDate: Sat Aug 12 19:10:34 2023 +0200

    [NTOS:CC] Fix locking of CcRosVacbIncRefCount in CcRosCreateVacb (#5527)
    
    CORE-17624
---
 ntoskrnl/cc/view.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 25d066abd03..0e6917ea18a 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -776,11 +776,12 @@ CcRosCreateVacb (
     }
     KeReleaseSpinLockFromDpcLevel(&SharedCacheMap->CacheMapLock);
     InsertTailList(&VacbLruListHead, &current->VacbLruListEntry);
-    KeReleaseQueuedSpinLock(LockQueueMasterLock, oldIrql);
 
     /* Reference it to allow release */
     CcRosVacbIncRefCount(current);
 
+    KeReleaseQueuedSpinLock(LockQueueMasterLock, oldIrql);
+
     return Status;
 }
 

Reply via email to