summaryrefslogtreecommitdiffstats
path: root/qobject/json-parser.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2017-08-08 14:22:51 +0200
committerStefan Hajnoczi2017-08-10 15:33:43 +0200
commit17d0bc01bfcce0ad4fb5105d4502595224569ff0 (patch)
tree5cea212defac3e69cc37a34936704a172f60114d /qobject/json-parser.c
parentIDE: test flush on empty CDROM (diff)
downloadqemu-17d0bc01bfcce0ad4fb5105d4502595224569ff0.tar.gz
qemu-17d0bc01bfcce0ad4fb5105d4502595224569ff0.tar.xz
qemu-17d0bc01bfcce0ad4fb5105d4502595224569ff0.zip
virtio-blk: handle blk_getlength() errors
If blk_getlength() fails in virtio_blk_update_config() consider the disk image length to be 0 bytes. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 20170808122251.29815-1-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qobject/json-parser.c')
0 files changed, 0 insertions, 0 deletions