Skip to content
Snippets Groups Projects
Commit 617a32f5 authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert
Browse files

migration: postcopy take proper error return


This function returns a boolean success and we're returning -1;
lets just use the 'out' error path.

Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
Fixes: 58b7c17e ("Disable mlock around incoming postcopy")
Buglink: https://bugs.launchpad.net/qemu/+bug/1885720


Message-Id: <20200701093557.130096-1-dgilbert@redhat.com>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
parent 3005c099
No related branches found
No related tags found
No related merge requests found
......@@ -389,7 +389,7 @@ bool postcopy_ram_supported_by_host(MigrationIncomingState *mis)
*/
if (munlockall()) {
error_report("%s: munlockall: %s", __func__, strerror(errno));
return -1;
goto out;
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment