migration: Always report an error in ram_save_setup()
commit76936bbc313190f8e4ea5e33f793fd00bf49b3f0
authorCédric Le Goater <clg@redhat.com>
Wed, 20 Mar 2024 06:49:00 +0000 (20 07:49 +0100)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Apr 2024 22:36:01 +0000 (23 18:36 -0400)
tree5f779cd9abc1ec910ab55a2e9dfd5b3a1b4ced5b
parent150da48cb28ff68ca51b5ab26c6d930bad60a460
migration: Always report an error in ram_save_setup()

This will prepare ground for future changes adding an Error** argument
to the save_setup() handler. We need to make sure that on failure,
ram_save_setup() sets a new error.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20240320064911.545001-5-clg@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/ram.c