From: Paul Durrant Date: Wed, 18 Sep 2019 16:19:19 +0000 (+0100) Subject: Prevent IsZeroMemory() ASSERTions when XENDISK shuts down X-Git-Tag: 9.0.0-rc1~13 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=970d75be60bfa8c329ec2b898945a46a30b74d5e;p=pvdrivers%2Fwin%2Fxenvbd.git Prevent IsZeroMemory() ASSERTions when XENDISK shuts down Pdo->PhysSectorSize needs to be zeroed out. Signed-off-by: Paul Durrant --- diff --git a/src/xendisk/pdo.c b/src/xendisk/pdo.c index 62e15b2..d996643 100644 --- a/src/xendisk/pdo.c +++ b/src/xendisk/pdo.c @@ -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);