# Pastebin mxX3swvz diff --git a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp index 6d4247bcd9..be379de8ec 100644 --- a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp +++ b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp @@ -1214,6 +1214,8 @@ usb_disk_attach(device_node *node, usb_device newDevice, void **cookie) if (result != B_OK) { TRACE_ALWAYS("failed to initialize logical units: %s\n", strerror(result)); + + gUSBModule->cancel_queued_requests(device->device); usb_disk_free_device_and_luns(device); return result; }