mirror of https://github.com/xqemu/xqemu.git
savevm: qemu_fille_buffer() used to return one error for reads of size 0.
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
db9eae1c49
commit
fa39a30fe4
2
savevm.c
2
savevm.c
|
@ -476,6 +476,8 @@ static void qemu_fill_buffer(QEMUFile *f)
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
f->buf_size += len;
|
f->buf_size += len;
|
||||||
f->buf_offset += len;
|
f->buf_offset += len;
|
||||||
|
} else if (len == 0) {
|
||||||
|
f->last_error = -EIO;
|
||||||
} else if (len != -EAGAIN)
|
} else if (len != -EAGAIN)
|
||||||
f->last_error = len;
|
f->last_error = len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue