qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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 <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>

+1 -1
+1 -1
migration/postcopy-ram.c
··· 389 389 */ 390 390 if (munlockall()) { 391 391 error_report("%s: munlockall: %s", __func__, strerror(errno)); 392 - return -1; 392 + goto out; 393 393 } 394 394 395 395 /*