https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ed06c06dcbccdc08a049bb659b6413be527118f3
commit ed06c06dcbccdc08a049bb659b6413be527118f3 Author: Timo Kreuzer <[email protected]> AuthorDate: Wed Sep 20 23:21:10 2023 +0300 Commit: Timo Kreuzer <[email protected]> CommitDate: Sat Sep 23 18:34:00 2023 +0300 [NTOS:CM] Fix lock leak Triggered by low available pool memory during kmtest ExPools. --- ntoskrnl/config/cmalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ntoskrnl/config/cmalloc.c b/ntoskrnl/config/cmalloc.c index eda161da97e..7d44ff82135 100644 --- a/ntoskrnl/config/cmalloc.c +++ b/ntoskrnl/config/cmalloc.c @@ -176,6 +176,9 @@ SearchKcbList: /* Now go back and search the list */ goto SearchKcbList; } + + /* Release the allocation lock */ + KeReleaseGuardedMutex(&CmpAllocBucketLock); } /* Allocate a KCB only */
