Don't attempt to uninitialize cache map with a spin lock held.

svn path=/trunk/; revision=65191
This commit is contained in:
Pierre Schweitzer 2014-11-02 19:27:58 +00:00
parent 82f99f5e41
commit 6ea5fe3e43

View 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);
}
}