mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
1 changed files with 2 additions and 0 deletions
2
savevm.c
2
savevm.c
|
@ -476,6 +476,8 @@ static void qemu_fill_buffer(QEMUFile *f)
|
|||
if (len > 0) {
|
||||
f->buf_size += len;
|
||||
f->buf_offset += len;
|
||||
} else if (len == 0) {
|
||||
f->last_error = -EIO;
|
||||
} else if (len != -EAGAIN)
|
||||
f->last_error = len;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue