mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
savevm: make qemu_file_put_notify() return errors
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6f121ff575
commit
a2b4135124
3 changed files with 6 additions and 5 deletions
|
@ -287,10 +287,11 @@ static void migrate_fd_completed(MigrationState *s)
|
|||
static void migrate_fd_put_notify(void *opaque)
|
||||
{
|
||||
MigrationState *s = opaque;
|
||||
int ret;
|
||||
|
||||
qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
|
||||
qemu_file_put_notify(s->file);
|
||||
if (s->file && qemu_file_get_error(s->file)) {
|
||||
ret = qemu_file_put_notify(s->file);
|
||||
if (ret) {
|
||||
migrate_fd_error(s);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue