Skip to contentSkip to conversation

libxl: fix regression introduced in 5c883cf036cf

PATCH In review Wei Liu 3 participants 3 messages May 16, 2019

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 libxl: fix regression introduced in 5c883cf036cf

Two lines were erroneously deleted during rebase which caused domain destruction to fail.

---
Sorry my usual test script failed to catch this.

---
 tools/libxl/libxl_device.c | 5 +++++
 1 file changed, 5 insertions(+)
tools/libxl/libxl_device.c +5 -0
index f8340ba815..db6c0203b7 100644
@@ -734,6 +734,11 @@ int libxl__device_destroy(libxl__gc *gc, libxl__device *dev)
     uint32_t domid;
     int libxl_only = dev->backend_kind == LIBXL__DEVICE_KIND_NONE;
 
+    if (!libxl_only) {
+        be_path = libxl__device_backend_path(gc, dev);
+        fe_path = libxl__device_frontend_path(gc, dev);
+    }
+
     rc = libxl__get_domid(gc, &domid);
     if (rc) goto out;
 
Signature · 7 lines
2.20.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#2 lore raw
In reply to Wei Liu

Wei Liu writes ("[PATCH] libxl: fix regression introduced in 5c883cf036cf"):

Quoted 2 lines

Two lines were erroneously deleted during rebase which caused domain destruction to fail.

I have taken this as a sign that I should have properly reviewed what became 5c883cf036cf.

Having done so I have also spotted that:

The newly introduced ERROR_FAIL returns in libxl should be ERROR_NI ("not implemented").

But I didn't see anything else, other than the rebase error that you are fixing now. So for this patch:

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel