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@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
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;