]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commitdiff
Zero ring stats before ASSERTing ring struct is zeroed
authorOwen Smith <owen.smith@citrix.com>
Mon, 23 Oct 2017 16:29:00 +0000 (17:29 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 23 Oct 2017 16:29:00 +0000 (17:29 +0100)
Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xenvbd/ring.c

index b572b07a71bc37476370b1c9d97a477372c7fef5..0b0df725ea4e7f90da49e45e0e7c7aefc3f47dca 100644 (file)
@@ -1754,6 +1754,16 @@ RingDestroy(
     RtlZeroMemory(&Ring->Lock, sizeof(KSPIN_LOCK));
     Ring->Frontend = NULL;
 
+    Ring->BlkOpRead = 0;
+    Ring->BlkOpWrite = 0;
+    Ring->BlkOpIndirectRead = 0;
+    Ring->BlkOpIndirectWrite = 0;
+    Ring->BlkOpBarrier = 0;
+    Ring->BlkOpDiscard = 0;
+    Ring->BlkOpFlush = 0;
+    Ring->SegsGranted = 0;
+    Ring->SegsBounced = 0;
+
     ASSERT(IsZeroMemory(Ring, sizeof(XENVBD_RING)));
     __RingFree(Ring);
 }