mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOS:KD] Release lock before calling KdpPrint
Avoiding resursive spinlock acquisition
This commit is contained in:
committed by
Jérôme Gardou
parent
608032bd08
commit
79c2972035
+3
-3
@@ -772,6 +772,9 @@ KdReceivePacket(
|
||||
OldIrql = KdpAcquireLock(&KdpSerialSpinLock);
|
||||
}
|
||||
|
||||
/* Release the spinlock */
|
||||
KdpReleaseLock(&KdpSerialSpinLock, OldIrql);
|
||||
|
||||
/* Print a new line */
|
||||
*StringChar.Buffer = '\n';
|
||||
KdpPrintString(&StringChar);
|
||||
@@ -783,9 +786,6 @@ KdReceivePacket(
|
||||
if (!(KdbDebugState & KD_DEBUG_KDSERIAL))
|
||||
KbdEnableMouse();
|
||||
|
||||
/* Release the spinlock */
|
||||
KdpReleaseLock(&KdpSerialSpinLock, OldIrql);
|
||||
|
||||
#endif
|
||||
return KdPacketReceived;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user