migration: provide an error message to migration_cancel()
authorLaurent Vivier <lvivier@redhat.com>
Wed, 29 Sep 2021 14:43:10 +0000 (16:43 +0200)
committerJuan Quintela <quintela@trasno.org>
Wed, 3 Nov 2021 08:38:53 +0000 (09:38 +0100)
commit458fecca80963b4c2c2164889d817542d2cece4f
tree0160e8b19e85842063eeb930216d516cecd08560
parent741bdeb1d5a4024a2c54c6abb2de493a27b61953
migration: provide an error message to migration_cancel()

This avoids to call migrate_get_current() in the caller function
whereas migration_cancel() already needs the pointer to the current
migration state.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c
migration/migration.h
migration/ram.c