]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Make migration_connect_set_error() own the error
authorPeter Xu <peterx@redhat.com>
Mon, 1 Dec 2025 19:45:07 +0000 (14:45 -0500)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Dec 2025 14:24:34 +0000 (09:24 -0500)
commit77c82edadbef9db20abee9faaf9a028cb140f3cb
tree11930c087083f9e8ba91a3834321ef1c42e0f0ce
parentb4898faabed183517ca1352401dc0071ae8866b9
migration: Make migration_connect_set_error() own the error

Make migration_connect_set_error() take ownership of the error always.
Paving way for making migrate_set_error() to take ownership.

When at it, renaming it to migration_connect_error_propagate(), following
Error API, to imply the Error object ownership transition.

NOTE: this patch also makes migration_connect() to take ownership of the
Error passed in.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Link: https://lore.kernel.org/r/20251201194510.1121221-5-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/channel.c
migration/migration.c