projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
405e352
)
migration/multifd: Add a couple of asserts for p->iov
author
Fabiano Rosas
<farosas@suse.de>
Wed, 28 Aug 2024 14:56:49 +0000
(11:56 -0300)
committer
Fabiano Rosas
<farosas@suse.de>
Tue, 3 Sep 2024 19:24:37 +0000
(16:24 -0300)
Check that p->iov is indeed always allocated and freed by the
MultiFDMethods hooks.
Suggested-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/multifd.c
patch
|
blob
|
history
diff --git
a/migration/multifd.c
b/migration/multifd.c
index 2a8cd9174ce86aa6a005af1e146003b7a39acc31..9b200f4ad912319ef9a20cbd8c876be1af080968 100644
(file)
--- a/
migration/multifd.c
+++ b/
migration/multifd.c
@@
-466,6
+466,7
@@
static bool multifd_send_cleanup_channel(MultiFDSendParams *p, Error **errp)
g_free(p->packet);
p->packet = NULL;
multifd_send_state->ops->send_cleanup(p, errp);
+ assert(!p->iov);
return *errp == NULL;
}
@@
-871,6
+872,7
@@
bool multifd_send_setup(void)
migrate_set_error(s, local_err);
goto err;
}
+ assert(p->iov);
}
return true;