]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migration: postcopy take proper error return
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 1 Jul 2020 09:35:57 +0000 (10:35 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 3 Jul 2020 15:23:05 +0000 (16:23 +0100)
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 <dgilbert@redhat.com>
Fixes: 58b7c17e226 ("Disable mlock around incoming postcopy")
Buglink: https://bugs.launchpad.net/qemu/+bug/1885720
Message-Id: <20200701093557.130096-1-dgilbert@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/postcopy-ram.c

index a36402722b975bfd32a96d0d9c6ddc1f2af22f87..bef2a3afed086b7e85e9549a0cd10a0e4fe3f61a 100644 (file)
@@ -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;
     }
 
     /*