https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3efc5b17347ad614cd807535625fbf12ca82a8e6

commit 3efc5b17347ad614cd807535625fbf12ca82a8e6
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Tue Jan 26 11:21:08 2021 +0100
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Feb 3 09:41:23 2021 +0100

    [NTOS:MM] Fix unlocking on failure path
---
 ntoskrnl/mm/ARM3/section.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ntoskrnl/mm/ARM3/section.c b/ntoskrnl/mm/ARM3/section.c
index fddaf752031..aeccb2adf28 100644
--- a/ntoskrnl/mm/ARM3/section.c
+++ b/ntoskrnl/mm/ARM3/section.c
@@ -1243,6 +1243,8 @@ MiLoadUserSymbols(IN PCONTROL_AREA ControlArea,
             _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
             {
                 ExFreePoolWithTag(LdrEntry, 'bDmM');
+                ExReleaseResourceLite(&PsLoadedModuleResource);
+                KeLeaveCriticalRegion();
                 _SEH2_YIELD(return);
             }
             _SEH2_END;

Reply via email to