[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] libxl_usb: Use proper domid value, from libxl__device
commit d37bf63be32399a598da909899f16e8c8a383acd Author: Anthony PERARD <anthony.perard@xxxxxxxxxx> AuthorDate: Wed May 29 17:01:06 2019 +0100 Commit: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> CommitDate: Fri Sep 20 10:41:01 2019 +0100 libxl_usb: Use proper domid value, from libxl__device ao->domid isn't a reliable way of getting a domid, it might not be set (this isn't the case here). The right domid value can be found in the libxl__device (which is the device we want to remove) attached to libxl__ao_device. Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/libxl/libxl_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_usb.c b/tools/libxl/libxl_usb.c index adb122ac85..3d389c0198 100644 --- a/tools/libxl/libxl_usb.c +++ b/tools/libxl/libxl_usb.c @@ -515,7 +515,7 @@ void libxl__initiate_device_usbctrl_remove(libxl__egc *egc, libxl_device_usbdev *usbdevs = NULL; int num_usbdev = 0; int i, rc; - uint32_t domid = ao->domid; + uint32_t domid = aodev->dev->domid; int usbctrl_devid = aodev->dev->devid; libxl_device_usbctrl usbctrl; libxl_usbctrlinfo usbctrlinfo; -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |