diff options
author | Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> | 2012-02-19 22:24:59 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-02-29 16:05:00 +0100 |
commit | a57d114389bdf8ce493456f85f2ec2229f7d0c00 (patch) | |
tree | 752399fe9ca3b9a8963c61a828dc431c9d9a540d /qemu-io.c | |
parent | 4889978e94bd16c5374f473d57f5e757fbe72485 (diff) |
qemu-io: fix segment fault when the image format is qed
[root@f15 qemu]# qemu-io -c info /home/zwu/work/misc/rh6.img
format name: qed
cluster size: 64 KiB
vm state offset: 0.000000 bytes
Segmentation fault (core dumped)
This reason is same as the former patch
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r-- | qemu-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1856,6 +1856,8 @@ int main(int argc, char **argv) bdrv_init(); + qemu_init_main_loop(); + /* initialize commands */ quit_init(); help_init(); |