References: bsc#989679 Subject: libxl: fix libxl_device_usbdev_list() From: Juergen Gross jgross@suse.com Fri Sep 2 10:16:14 2016 +0200 Date: Fri Sep 2 09:54:42 2016 +0100: Git: 74157a2f9886b55cd45714e58c80035bfe3e080c Commit 03814de1d2ecdabedabceb8e728d934a632a43b9 ("libxl: Do not trust frontend for vusb") introduced an error in libxl_device_usbdev_list(). Fix it. Signed-off-by: Juergen Gross Acked-by: Wei Liu Index: xen-4.7.0-testing/tools/libxl/libxl_pvusb.c =================================================================== --- xen-4.7.0-testing.orig/tools/libxl/libxl_pvusb.c +++ xen-4.7.0-testing/tools/libxl/libxl_pvusb.c @@ -732,7 +732,7 @@ libxl_device_usbdev_list(libxl_ctx *ctx, *num = 0; libxl_vusbs_path = GCSPRINTF("%s/device/vusb", - libxl__xs_libxl_path(gc, !domid)); + libxl__xs_libxl_path(gc, domid)); usbctrls = libxl__xs_directory(gc, XBT_NULL, libxl_vusbs_path, &nc); for (i = 0; i < nc; i++) {