Revision ee210d63 hw/usb-bus.c

b/hw/usb-bus.c
181 181
                dev->product_desc);
182 182
        return;
183 183
    }
184
    if (bus->nfree == 0) {
185
        fprintf(stderr, "Warning: tried to attach usb device %s to a bus with no free ports\n",
186
                dev->product_desc);
187
        return;
188
    }
184 189
    if (dev->port_path) {
185 190
        QTAILQ_FOREACH(port, &bus->free, next) {
186 191
            if (strcmp(port->path, dev->port_path) == 0) {

Also available in: Unified diff