]> git.proxmox.com Git - mirror_qemu.git/commitdiff
blkdebug: Fix set_state_opts definition
authorKevin Wolf <kwolf@redhat.com>
Wed, 30 Jun 2010 15:40:42 +0000 (17:40 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Jul 2010 11:18:02 +0000 (13:18 +0200)
The list head was initialized to point to the wrong list, so all actions ended
up being handled as inject-error even if they were set-state in fact.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkdebug.c

index 98fed944b1364f82921c4a02a4fa2244d7d27b53..4ec8ca69848c672a9470842bca676bb496db9481 100644 (file)
@@ -111,7 +111,7 @@ static QemuOptsList inject_error_opts = {
 
 static QemuOptsList set_state_opts = {
     .name = "set-state",
-    .head = QTAILQ_HEAD_INITIALIZER(inject_error_opts.head),
+    .head = QTAILQ_HEAD_INITIALIZER(set_state_opts.head),
     .desc = {
         {
             .name = "event",