From 250561e1aebf69e911992da9017322df7aeaa564 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Thu, 8 Jun 2017 10:39:05 -0300 Subject: migration: Don't try to set *errp directly Assigning directly to *errp is not valid, as errp may be NULL, &error_fatal, or &error_abort. Use error_propagate() instead. Cc: Juan Quintela Cc: "Dr. David Alan Gilbert" Signed-off-by: Eduardo Habkost Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- migration/migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 9dfa19abe1..ae087df56b 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1179,7 +1179,7 @@ bool migration_is_blocked(Error **errp) } if (migration_blockers) { - *errp = error_copy(migration_blockers->data); + error_propagate(errp, error_copy(migration_blockers->data)); return true; } -- cgit v1.2.3