Skip to contentSkip to conversation

kvm tools: Fix compat message per device for virtio/blk

PATCH New Asias He 1 participant 1 message Dec 21, 2011 KVM

lore
Share & tools
lore

Asias He

author
#0 lore raw

PATCH 1/1 kvm tools: Fix compat message per device for virtio/blk

The commit 2b6c246215e8f936d2366ef8c4a6eec730b819b2 (kvm tools: Use compat message per device instead of per instance) prevents multiple messages for the same type of device.

The variable compat_id is expected to be initialized to -1.

---
 tools/kvm/virtio/blk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/kvm/virtio/blk.c +1 -1
index d1a0197..1d921a8 100644
@@ -54,7 +54,7 @@ struct blk_dev {
 };
 
 static LIST_HEAD(bdevs);
-static int compat_id;
+static int compat_id = -1;
 
 void virtio_blk_complete(void *param, long len)
 {
Signature · 1 line
1.7.7.3