summaryrefslogtreecommitdiff
path: root/serial/VirtualSerial2/queue.c
diff options
context:
space:
mode:
authorYang You(UU) <[email protected]>2026-06-15 15:43:49 -0700
committerGitHub <[email protected]>2026-06-15 15:43:49 -0700
commit52f73736b407acb1f8a0af513c9614a5354cea5b (patch)
tree7af73a234b3500645d37a57935f62d5a1f4c6b0e /serial/VirtualSerial2/queue.c
parent5426a647c3f86885e4b9d8679d4a4c108933b5ee (diff)
parente99ae832b48b245404f9bd750af4864247b061e8 (diff)
Merge branch 'microsoft:main' into WifiihvsampleDataPath
Diffstat (limited to 'serial/VirtualSerial2/queue.c')
-rw-r--r--serial/VirtualSerial2/queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/serial/VirtualSerial2/queue.c b/serial/VirtualSerial2/queue.c
index 80571b42..371ef693 100644
--- a/serial/VirtualSerial2/queue.c
+++ b/serial/VirtualSerial2/queue.c
@@ -173,7 +173,6 @@ RequestCopyToBuffer(
return status;
}
- WdfRequestSetInformation(Request, NumBytesToCopyTo);
return status;
}
@@ -718,7 +717,7 @@ QueueProcessGetLineControl(
//
// Take a snapshot of the line control register variable
//
- lineControlSnapshot = *lineControlRegister;
+ lineControlSnapshot = ReadNoFence((LONG *)lineControlRegister);
//
// Decode the word length
@@ -947,7 +946,7 @@ QueueProcessSetLineControl(
#endif
}
- lineControlSnapshot = *lineControlRegister;
+ lineControlSnapshot = ReadNoFence((LONG *)lineControlRegister);
lineControlNew = (lineControlSnapshot & SERIAL_LCR_BREAK) |
(lineControlData | lineControlParity | lineControlStop);