mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:CC] CcRosInitializeFileCache: Fix a missing spinlock release
This commit is contained in:
parent
4aee0280f9
commit
af4e39385c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue