]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-io.c
qemu-io: fix segment fault when the image format is qed
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Sun, 19 Feb 2012 14:24:59 +0000 (22:24 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Feb 2012 15:05:00 +0000 (16:05 +0100)
commita57d114389bdf8ce493456f85f2ec2229f7d0c00
tree752399fe9ca3b9a8963c61a828dc431c9d9a540d
parent4889978e94bd16c5374f473d57f5e757fbe72485
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>
qemu-io.c