Skip to content

Commit ed06c06

Browse files
committed
[NTOS:CM] Fix lock leak
Triggered by low available pool memory during kmtest ExPools.
1 parent aa84645 commit ed06c06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ntoskrnl/config/cmalloc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ CmpAllocateKeyControlBlock(VOID)
176176
/* Now go back and search the list */
177177
goto SearchKcbList;
178178
}
179+
180+
/* Release the allocation lock */
181+
KeReleaseGuardedMutex(&CmpAllocBucketLock);
179182
}
180183

181184
/* Allocate a KCB only */

0 commit comments

Comments
 (0)