[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] qemu-io: fix segment fault when the image forma
From: |
zwu . kernel |
Subject: |
[Qemu-devel] [PATCH 2/2] qemu-io: fix segment fault when the image format is qed |
Date: |
Sun, 19 Feb 2012 22:26:22 +0800 |
From: Zhi Yong Wu <address@hidden>
address@hidden 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 <address@hidden>
---
qemu-io.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/qemu-io.c b/qemu-io.c
index 0249be4..3189530 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();
--
1.7.6