diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-06-30 17:40:42 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-07-02 13:18:02 +0200 |
commit | 327cdad4163dcf3928472e0cdbf6b6b97c88670b (patch) | |
tree | 06504ecfbcf472aa663405c2ca6991f1b6541abe /block/blkdebug.c | |
parent | bb67ab0290b9a83d4d444e2e9a0311d3b9b54385 (diff) | |
download | qemu-327cdad4163dcf3928472e0cdbf6b6b97c88670b.tar.gz qemu-327cdad4163dcf3928472e0cdbf6b6b97c88670b.tar.bz2 qemu-327cdad4163dcf3928472e0cdbf6b6b97c88670b.zip |
blkdebug: Fix set_state_opts definition
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>
Diffstat (limited to 'block/blkdebug.c')
-rw-r--r-- | block/blkdebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 98fed944b1..4ec8ca6984 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -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", |