]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commitdiff
Prevent IsZeroMemory() ASSERTions when XENDISK shuts down
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 18 Sep 2019 16:19:19 +0000 (17:19 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 18 Sep 2019 16:19:19 +0000 (17:19 +0100)
Pdo->PhysSectorSize needs to be zeroed out.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xendisk/pdo.c

index 62e15b299cface188a944fd434e52f872eb9b8ff..d9966431ca6f611f01e44f4495aa998c4c35d509 100644 (file)
@@ -1024,6 +1024,7 @@ __PdoStopDevice(
 
     IoReleaseRemoveLock(&Pdo->Dx->RemoveLock, Irp);
 
+    Pdo->PhysSectorSize = 0;
     Pdo->SectorSize = 0;
 
     return STATUS_SUCCESS;
@@ -1276,6 +1277,7 @@ done:
     status = PdoForwardIrpSynchronously(Pdo, Irp);
     IoCompleteRequest(Irp, IO_NO_INCREMENT);
 
+    Pdo->PhysSectorSize = 0;
     Pdo->SectorSize = 0;
 
     FdoAcquireMutex(Fdo);