diff options
-rw-r--r-- | lib/libusb/usb-core.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libusb/usb-core.c b/lib/libusb/usb-core.c index aa41b97..6719c57 100644 --- a/lib/libusb/usb-core.c +++ b/lib/libusb/usb-core.c @@ -512,7 +512,14 @@ int setup_new_device(struct usb_dev *dev, unsigned int port) * devices */ if (dev->speed != USB_SUPER_SPEED) { - if(!usb_set_address(dev, port)) + /* + * Qemu starts the port number from 1 which was + * revealed in bootindex and resulted in mismatch for + * storage devices names. Adjusting this here for + * compatibility. + */ + dev->port = port + 1; + if(!usb_set_address(dev, dev->port)) goto fail; } mb(); |