]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: vmstate_save_state_v(): fix error path
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Tue, 28 Oct 2025 13:07:37 +0000 (16:07 +0300)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:10 +0000 (16:04 -0500)
commitd4b3a3cc55845685c16d4313ff345c392262d940
tree4983291d10ce141a0f3050ba51eba3cfd1161bf7
parent604bb1badcade5f49264cf8901c2f3a528df305a
migration: vmstate_save_state_v(): fix error path

In case of pre_save_errp, on error, we continue processing fields,
unlike case of pre_save, where we return immediately. Behavior
for pre_save_errp case is wrong, we must return here, like for
pre_save.

 "migration: Add error-parameterized function variants in VMSD struct"

Fixes: 40de712a89
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Link: https://lore.kernel.org/r/20251028130738.29037-2-vsementsov@yandex-team.ru
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/vmstate.c