diff mbox

qemu-kvm: clear only essential parts of VirtIOBlockReq on object allocation

Message ID 41be791c0911040941y3548de23v20959cf1c1300875@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Saul Tamari Nov. 4, 2009, 5:41 p.m. UTC
None
diff mbox

Patch

diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 2630b99..fd44371 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -79,12 +79,12 @@  static inline void virtio_identify_template(struct
virtio_blk_config *bc)
 typedef struct VirtIOBlockReq
 {
     VirtIOBlock *dev;
-    VirtQueueElement elem;
     struct virtio_blk_inhdr *in;
     struct virtio_blk_outhdr *out;
     struct virtio_scsi_inhdr *scsi;
     QEMUIOVector qiov;
     struct VirtIOBlockReq *next;
+    VirtQueueElement elem;
 } VirtIOBlockReq;