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

commit dd392b9d6c55dfdbdac622587a76a695f92b8184
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Sun Feb 18 19:32:08 2018 +0100
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Sun Feb 18 19:32:08 2018 +0100

    [NTOSKRNL] Fix mismatching spinlock release in CcPerformReadAhead()
---
 ntoskrnl/cc/copy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/cc/copy.c b/ntoskrnl/cc/copy.c
index a3b1f887aa..a90734000e 100644
--- a/ntoskrnl/cc/copy.c
+++ b/ntoskrnl/cc/copy.c
@@ -597,7 +597,7 @@ Clear:
         InterlockedAnd((volatile long *)&PrivateCacheMap->UlongFlags, 
0xFFFEFFFF);
         KeReleaseSpinLockFromDpcLevel(&PrivateCacheMap->ReadAheadSpinLock);
     }
-    KeReleaseSpinLock(&PrivateCacheMap->ReadAheadSpinLock, OldIrql);
+    KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
 
     /* If file was locked, release it */
     if (Locked)

Reply via email to