Skip to content

Commit 617a32f

Browse files
committed
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: Dr. David Alan Gilbert <[email protected]> Fixes: 58b7c17 ("Disable mlock around incoming postcopy") Buglink: https://bugs.launchpad.net/qemu/+bug/1885720 Message-Id: <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Dr. David Alan Gilbert <[email protected]>
1 parent 3005c09 commit 617a32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migration/postcopy-ram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ bool postcopy_ram_supported_by_host(MigrationIncomingState *mis)
389389
*/
390390
if (munlockall()) {
391391
error_report("%s: munlockall: %s", __func__, strerror(errno));
392-
return -1;
392+
goto out;
393393
}
394394

395395
/*

0 commit comments

Comments
 (0)