]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Fix an IsZeroMemory() ASSERTion failure
authorPaul Durrant <pdurrant@amazon.com>
Mon, 13 Jun 2022 13:20:02 +0000 (14:20 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Tue, 14 Jun 2022 13:42:34 +0000 (14:42 +0100)
The TargetProcessor field of the XENVIF_RECEIVER_RING structure is not being
cleared and hence may be non-zero when the buffer is checked. This patch
rectifies the situation.

Fixes: eb83dbd5162d ("Windows PV drivers fail to set up RSS when vCPU index >= 8")
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenvif/receiver.c

index 505505ee886ecd6203baee9dd529eb814783d2db..d4703b9bd322f7e41d695a55f44316f1ee6187a7 100644 (file)
@@ -2963,6 +2963,8 @@ __ReceiverRingTeardown(
     Ring->BackfillSize = 0;
     Ring->OffloadOptions.Value = 0;
 
+    RtlZeroMemory(&Ring->TargetProcessor, sizeof (PROCESSOR_NUMBER));
+
     KeFlushQueuedDpcs();
     RtlZeroMemory(&Ring->QueueDpc, sizeof (KDPC));