migration: handle the error condition properly
commite8f3735fa3aa457303534121794b0452d22d440f
authorXiao Guangrong <xiaoguangrong@tencent.com>
Mon, 3 Sep 2018 09:26:44 +0000 (3 17:26 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 Sep 2018 11:22:21 +0000 (26 12:22 +0100)
tree5650a800b00696017ffffa7cb6c8733c67d0bbde
parentbe8b02edae9aa3a64c1e76cb4067b4bbbb170448
migration: handle the error condition properly

ram_find_and_save_block() can return negative if any error hanppens,
however, it is completely ignored in current code

Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20180903092644.25812-5-xiaoguangrong@tencent.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c