[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/5] migration: postcopy take proper error return
From: |
Dr. David Alan Gilbert (git) |
Subject: |
[PULL 4/5] migration: postcopy take proper error return |
Date: |
Fri, 3 Jul 2020 16:27:47 +0100 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index a36402722b..bef2a3afed 100644
--- a/migration/postcopy-ram.c
+++ b/migration/postcopy-ram.c
@@ -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;
}
/*
--
2.26.2
- [PULL 0/5] migration queue, Dr. David Alan Gilbert (git), 2020/07/03
- [PULL 1/5] virtiofsd: Terminate capability list, Dr. David Alan Gilbert (git), 2020/07/03
- [PULL 2/5] virtiofsd: Check capability calls, Dr. David Alan Gilbert (git), 2020/07/03
- [PULL 3/5] virtiofsd: Allow addition or removal of capabilities, Dr. David Alan Gilbert (git), 2020/07/03
- [PULL 4/5] migration: postcopy take proper error return,
Dr. David Alan Gilbert (git) <=
- [PULL 5/5] migration: Count new_dirty instead of real_dirty, Dr. David Alan Gilbert (git), 2020/07/03
- Re: [PULL 0/5] migration queue, Peter Maydell, 2020/07/04