]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
Fix be xs watch
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Jan 2023 09:07:18 +0000 (10:07 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Jan 2023 09:07:18 +0000 (10:07 +0100)
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/i386/kvm/xen_xenstore.c

index 7445da0efd82f5b23c920ca67bec8e207d8cb3a5..07e29448608b5ae1830fcea817b6b042c9e466c0 100644 (file)
@@ -1349,7 +1349,7 @@ static struct qemu_xs_watch *xs_be_watch(struct qemu_xs_handle *h,
     int err;
 
     err = xs_impl_watch(h->impl, DOMID_QEMU, path, NULL, xs_be_watch_cb, w);
-    if (w) {
+    if (err) {
         errno = err;
         g_free(w);
         return NULL;