https://git.reactos.org/?p=reactos.git;a=commitdiff;h=802ad6d3ee93649febe0d…
commit 802ad6d3ee93649febe0d31c0990c5592cb6b2ba
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Nov 12 01:22:46 2020 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Wed Mar 3 09:01:37 2021 +0100
[NTOS:KD] KdpLoggerThread(): Assert being in kernel mode
to be explicit that using Nt*() is safe.
Follow-up to 9537653.
---
ntoskrnl/kd/kdio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ntoskrnl/kd/kdio.c b/ntoskrnl/kd/kdio.c
index 4ada3609a89..9804b52b50c 100644
--- a/ntoskrnl/kd/kdio.c
+++ b/ntoskrnl/kd/kdio.c
@@ -110,6 +110,8 @@ KdpLoggerThread(PVOID Context)
ULONG beg, end, num;
IO_STATUS_BLOCK Iosb;
+ ASSERT(ExGetPreviousMode() == KernelMode);
+
KdpLoggingEnabled = TRUE;
while (TRUE)