mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
savevm: make qemu_fill_buffer() be consistent
It was setting last_error directly once, and with the helper the other time. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3aee4be1de
commit
02c4a0511b
1 changed files with 1 additions and 1 deletions
2
savevm.c
2
savevm.c
|
@ -501,7 +501,7 @@ static void qemu_fill_buffer(QEMUFile *f)
|
|||
f->buf_size += len;
|
||||
f->buf_offset += len;
|
||||
} else if (len == 0) {
|
||||
f->last_error = -EIO;
|
||||
qemu_file_set_error(f, -EIO);
|
||||
} else if (len != -EAGAIN)
|
||||
qemu_file_set_error(f, len);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue