migration: Make sure that we don't call write() in case of error
commit4d65a6216bfc44891ac298b74a6921d479805131
authorJuan Quintela <quintela@redhat.com>
Wed, 18 Dec 2019 04:36:22 +0000 (18 05:36 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 20 Jan 2020 08:10:22 +0000 (20 09:10 +0100)
treed4011ad42feb035f8f7b2700f378ff6e45d1a1ff
parentb99784ef6c3beff2c43ea8d3bc50cdcd7903658f
migration: Make sure that we don't call write() in case of error

If we are exiting due to an error/finish/.... Just don't try to even
touch the channel with one IO operation.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c