summary refs log tree commit diff stats
path: root/hw/remote/remote-obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/remote/remote-obj.c')
-rw-r--r--hw/remote/remote-obj.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/remote/remote-obj.c b/hw/remote/remote-obj.c
index 85882902d7..3402068ab9 100644
--- a/hw/remote/remote-obj.c
+++ b/hw/remote/remote-obj.c
@@ -107,7 +107,11 @@ static void remote_object_machine_done(Notifier *notifier, void *data)
         error_report_err(err);
         return;
     }
-    qio_channel_set_blocking(ioc, false, NULL);
+    if (!qio_channel_set_blocking(ioc, false, &err)) {
+        error_report_err(err);
+        object_unref(OBJECT(ioc));
+        return;
+    }
 
     o->dev = dev;