[NTOS:CC] Fix locking of CcRosVacbIncRefCount in CcRosCreateVacb (#5527)

CORE-17624
This commit is contained in:
Doug Lyons 2023-08-12 12:10:34 -05:00 committed by GitHub
parent 2c9c634a8e
commit e6ca3952e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -776,11 +776,12 @@ CcRosCreateVacb (
}
KeReleaseSpinLockFromDpcLevel(&SharedCacheMap->CacheMapLock);
InsertTailList(&VacbLruListHead, &current->VacbLruListEntry);
KeReleaseQueuedSpinLock(LockQueueMasterLock, oldIrql);
/* Reference it to allow release */
CcRosVacbIncRefCount(current);
KeReleaseQueuedSpinLock(LockQueueMasterLock, oldIrql);
return Status;
}