mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[NTOS:CC] CcRosInitializeFileCache: Fix a missing spinlock release
This commit is contained in:
committed by
GitHub
parent
4aee0280f9
commit
af4e39385c
@@ -1304,10 +1304,10 @@ CcRosInitializeFileCache (
|
||||
SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
|
||||
if (SharedCacheMap == NULL)
|
||||
{
|
||||
Allocated = TRUE;
|
||||
SharedCacheMap = ExAllocateFromNPagedLookasideList(&SharedCacheMapLookasideList);
|
||||
if (SharedCacheMap == NULL)
|
||||
{
|
||||
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
RtlZeroMemory(SharedCacheMap, sizeof(*SharedCacheMap));
|
||||
@@ -1335,6 +1335,7 @@ CcRosInitializeFileCache (
|
||||
NULL,
|
||||
KernelMode);
|
||||
|
||||
Allocated = TRUE;
|
||||
FileObject->SectionObjectPointer->SharedCacheMap = SharedCacheMap;
|
||||
|
||||
//CcRosTraceCacheMap(SharedCacheMap, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user