win-pvdrivers

changeset 590:d40c760a4f6b

Fixed off-by-one error in previous xenvbd commit
author James Harper <james.harper@bendigoit.com.au>
date Tue Jun 09 13:42:03 2009 +1000 (2009-06-09)
parents e99c24e36f2f
children caf4329df174
files xenvbd/xenvbd.c
line diff
     1.1 --- a/xenvbd/xenvbd.c	Tue Jun 09 12:31:57 2009 +1000
     1.2 +++ b/xenvbd/xenvbd.c	Tue Jun 09 13:42:03 2009 +1000
     1.3 @@ -533,7 +533,7 @@ XenVbd_StartRingDetection(PXENVBD_DEVICE
     1.4    int notify;
     1.5  
     1.6    xvdd->ring_detect_state = RING_DETECT_STATE_DETECT1;
     1.7 -  RtlZeroMemory(xvdd->sring->ring, PAGE_SIZE);
     1.8 +  RtlZeroMemory(xvdd->sring->ring, PAGE_SIZE - FIELD_OFFSET(blkif_sring_t, ring));
     1.9    req = RING_GET_REQUEST(&xvdd->ring, xvdd->ring.req_prod_pvt);
    1.10    req->operation = 0xff;
    1.11    xvdd->ring.req_prod_pvt++;