]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Fix compat message per device for virtio/blk
authorAsias He <asias.hejun@gmail.com>
Wed, 21 Dec 2011 15:11:10 +0000 (23:11 +0800)
committerPekka Enberg <penberg@kernel.org>
Wed, 21 Dec 2011 20:32:10 +0000 (22:32 +0200)
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.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/virtio/blk.c

index d1a0197d1346ad7bf0c18e6718bbad392a21350d..1d921a80e6d151487ef75262923e90a8e0f67bcb 100644 (file)
@@ -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)
 {