migration: set file error on subsection loading
commitcd4c0da6dbeac5cc986a4a553c722cbf4b3d0300
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 24 Oct 2023 08:40:41 +0000 (24 12:40 +0400)
committerJuan Quintela <quintela@redhat.com>
Mon, 30 Oct 2023 16:44:03 +0000 (30 17:44 +0100)
treea45edfa809435334383dc66ca84ec86425b48981
parent4d8bdc2ae043a572a2ec6f8788123935a2de0943
migration: set file error on subsection loading

commit 13cde50889237 ("vmstate: Return error in case of error") sets
QemuFile error to stop reading from it and report to the caller (checked
by unit tests). We should do the same on subsection loading error.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231024084043.2926316-8-marcandre.lureau@redhat.com>
migration/vmstate.c