]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: fix segment fault when the image format is qed
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Sun, 19 Feb 2012 14:24:35 +0000 (22:24 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Feb 2012 15:05:07 +0000 (16:05 +0100)
commit67d384e80471e91aa490d4573cac5a46f92f685f
tree76a13d4db27469559cfdc9fda75937004e9b9fcc
parenta57d114389bdf8ce493456f85f2ec2229f7d0c00
qemu-img: fix segment fault when the image format is qed

[root@f15 qemu]# qemu-img info /home/zwu/work/misc/rh6.img
image: /home/zwu/work/misc/rh6.img
file format: qed
virtual size: 4.0G (4294967296 bytes)
disk size: 1.2G
cluster_size: 65536
Segmentation fault (core dumped)

Today when i were fixing another issue, i found this issue; After simple
investigation, i found that the required clock vm_clock is not created
for qemu tool.

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-img.c