diff options
author | Stefan Hajnoczi | 2017-08-08 14:22:51 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2017-08-10 15:33:43 +0200 |
commit | 17d0bc01bfcce0ad4fb5105d4502595224569ff0 (patch) | |
tree | 5cea212defac3e69cc37a34936704a172f60114d /qobject/json-streamer.c | |
parent | IDE: test flush on empty CDROM (diff) | |
download | qemu-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-streamer.c')
0 files changed, 0 insertions, 0 deletions