diff --git a/usb-linux.c b/usb-linux.c index 1ecfbc45655532510baf35702e5c98173e2b6188..d0d7cff496f29839aa8b36107ffc254ae3cb141f 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -846,6 +846,9 @@ static int usb_linux_update_endp_table(USBHostDevice *s) case 0x03: type = USBDEVFS_URB_TYPE_INTERRUPT; break; + default: + DPRINTF("usb_host: malformed endpoint type\n"); + type = USBDEVFS_URB_TYPE_BULK; } s->endp_table[(devep & 0xf) - 1].type = type; s->endp_table[(devep & 0xf) - 1].halted = 0;