All migration hooks, except this one, return -1 on error and 0 on
success.

Signed-off-by: Fabiano Rosas <faro...@suse.de>
---
 target/arm/machine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/arm/machine.c b/target/arm/machine.c
index fc4a4a4064..db3fcd5ae4 100644
--- a/target/arm/machine.c
+++ b/target/arm/machine.c
@@ -702,7 +702,7 @@ static int put_power(QEMUFile *f, void *opaque, size_t size,
         qemu_put_byte(f, powered_off);
         return 0;
     } else {
-        return 1;
+        return -1;
     }
 }
 
-- 
2.35.3


Reply via email to