From: Marc-André Lureau <[email protected]>
Fixes: 394b9407e4c ("migration: mark mixed functions that can suspend")
Reviewed-by: Peter Xu <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
(cherry picked from commit aea4af8c515fbf7be50e2cb94e5fd31307b1b3b4)
Signed-off-by: Michael Tokarev <[email protected]>
diff --git a/migration/qemu-file.c b/migration/qemu-file.c
index 1303a5bf583..45c330b6d32 100644
--- a/migration/qemu-file.c
+++ b/migration/qemu-file.c
@@ -860,7 +860,7 @@ uint64_t qemu_get_be64(QEMUFile *f)
* else 0
* (Note a 0 length string will return 0 either way)
*/
-size_t coroutine_fn qemu_get_counted_string(QEMUFile *f, char buf[256])
+size_t coroutine_mixed_fn qemu_get_counted_string(QEMUFile *f, char buf[256])
{
size_t len = qemu_get_byte(f);
size_t res = qemu_get_buffer(f, (uint8_t *)buf, len);
--
2.47.3