From: Zhi Yong Wu Date: Sun, 19 Feb 2012 14:24:59 +0000 (+0800) Subject: qemu-io: fix segment fault when the image format is qed X-Git-Tag: v1.1-rc0~290^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a57d114389bdf8ce493456f85f2ec2229f7d0c00;p=thirdparty%2Fqemu.git 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 Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- diff --git a/qemu-io.c b/qemu-io.c index 0249be4e71e..31895305f10 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1856,6 +1856,8 @@ int main(int argc, char **argv) bdrv_init(); + qemu_init_main_loop(); + /* initialize commands */ quit_init(); help_init();