[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 2 Nov 2014 19:27:58 +0000 (19:27 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 2 Nov 2014 19:27:58 +0000 (19:27 +0000)
Don't attempt to uninitialize cache map with a spin lock held.

svn path=/trunk/; revision=65191

reactos/drivers/filesystems/ntfs/fcb.c

index 1e71fd4..f4e7fc9 100644 (file)
@@ -162,11 +162,14 @@ NtfsReleaseFCB(PNTFS_VCB Vcb,
     if (Fcb->RefCount <= 0 && !NtfsFCBIsDirectory(Fcb))
     {
         RemoveEntryList(&Fcb->FcbListEntry);
+        KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql);
         CcUninitializeCacheMap(Fcb->FileObject, NULL, NULL);
         NtfsDestroyFCB(Fcb);
     }
-
-    KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql);
+    else
+    {
+        KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql);
+    }
 }