mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
migration: Set migration error outside of migrate_cancel
There's no point passing the error into migration cancel only for it to call migrate_set_error(). Reviewed-by: Peter Xu <peterx@redhat.com> Message-ID: <20250213175927.19642-2-farosas@suse.de> Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
e0ad300fe1
commit
a47f0cfba8
3 changed files with 6 additions and 7 deletions
|
@ -4465,8 +4465,10 @@ static void ram_mig_ram_block_resized(RAMBlockNotifier *n, void *host,
|
|||
* Abort and indicate a proper reason.
|
||||
*/
|
||||
error_setg(&err, "RAM block '%s' resized during precopy.", rb->idstr);
|
||||
migration_cancel(err);
|
||||
migrate_set_error(migrate_get_current(), err);
|
||||
error_free(err);
|
||||
|
||||
migration_cancel();
|
||||
}
|
||||
|
||||
switch (ps) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue