aboutsummaryrefslogtreecommitdiff
path: root/block/vhdx-log.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-01-29 18:05:08 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2014-01-31 22:05:03 +0100
commitf50159fa9b5a0ad82e30c123643ec39a1df81d9a (patch)
treea6eebce275a0054abdbb2871338b16ce71b4f6f0 /block/vhdx-log.c
parentfb0a078f3a84b5a609d528500eea36b69ace9b20 (diff)
downloadqemu-f50159fa9b5a0ad82e30c123643ec39a1df81d9a.zip
qemu-f50159fa9b5a0ad82e30c123643ec39a1df81d9a.tar.gz
qemu-f50159fa9b5a0ad82e30c123643ec39a1df81d9a.tar.bz2
block/vhdx: Error checking fixes
Errors are inadvertently ignored in a few places. Has always been broken. Spotted by Coverity. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/vhdx-log.c')
-rw-r--r--block/vhdx-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/vhdx-log.c b/block/vhdx-log.c
index 8c9ae0d..02755b8 100644
--- a/block/vhdx-log.c
+++ b/block/vhdx-log.c
@@ -965,8 +965,8 @@ static int vhdx_log_write(BlockDriverState *bs, BDRVVHDXState *s,
cpu_to_le32s((uint32_t *)(buffer + 4));
/* now write to the log */
- vhdx_log_write_sectors(bs, &s->log, &sectors_written, buffer,
- desc_sectors + sectors);
+ ret = vhdx_log_write_sectors(bs, &s->log, &sectors_written, buffer,
+ desc_sectors + sectors);
if (ret < 0) {
goto exit;
}