[NTOS:KE] Disable interrupts before lowering IRQL in KiDpcInterruptHandler to avoid...
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 9 Mar 2018 20:07:10 +0000 (21:07 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 20 Sep 2020 21:08:17 +0000 (23:08 +0200)
ntoskrnl/ke/amd64/stubs.c

index 43117fe..ff97393 100644 (file)
@@ -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);
 }