mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[NTFS]
Don't attempt to uninitialize cache map with a spin lock held. svn path=/trunk/; revision=65191
This commit is contained in:
parent
82f99f5e41
commit
6ea5fe3e43
1 changed files with 5 additions and 2 deletions
|
@ -162,11 +162,14 @@ NtfsReleaseFCB(PNTFS_VCB Vcb,
|
||||||
if (Fcb->RefCount <= 0 && !NtfsFCBIsDirectory(Fcb))
|
if (Fcb->RefCount <= 0 && !NtfsFCBIsDirectory(Fcb))
|
||||||
{
|
{
|
||||||
RemoveEntryList(&Fcb->FcbListEntry);
|
RemoveEntryList(&Fcb->FcbListEntry);
|
||||||
|
KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql);
|
||||||
CcUninitializeCacheMap(Fcb->FileObject, NULL, NULL);
|
CcUninitializeCacheMap(Fcb->FileObject, NULL, NULL);
|
||||||
NtfsDestroyFCB(Fcb);
|
NtfsDestroyFCB(Fcb);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql);
|
{
|
||||||
|
KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue