https://git.reactos.org/?p=reactos.git;a=commitdiff;h=366e8a840ca8ef4484a18…
commit 366e8a840ca8ef4484a183ce6a22ba410a0cafed
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Fri Mar 9 21:07:10 2018 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Sep 20 23:08:17 2020 +0200
[NTOS:KE] Disable interrupts before lowering IRQL in KiDpcInterruptHandler to avoid
stacking up DPC interrupts
---
ntoskrnl/ke/amd64/stubs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/ke/amd64/stubs.c b/ntoskrnl/ke/amd64/stubs.c
index 43117fe6868..ff973935d69 100644
--- a/ntoskrnl/ke/amd64/stubs.c
+++ b/ntoskrnl/ke/amd64/stubs.c
@@ -71,9 +71,9 @@ KiDpcInterruptHandler(VOID)
KiSwapContext(APC_LEVEL, OldThread);
}
- /* Go back to old irql and disable interrupts */
- KeLowerIrql(OldIrql);
+ /* Disable interrupts and go back to old irql */
_disable();
+ KeLowerIrql(OldIrql);
}