|
@@ -875,6 +875,10 @@ static int usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
|
|
int ret, pipe, i;
|
|
int ret, pipe, i;
|
|
|
|
|
|
|
|
interface = intf->cur_altsetting;
|
|
interface = intf->cur_altsetting;
|
|
|
|
|
+
|
|
|
|
|
+ if (interface->desc.bNumEndpoints < 1)
|
|
|
|
|
+ return -ENODEV;
|
|
|
|
|
+
|
|
|
endpoint = &interface->endpoint[0].desc;
|
|
endpoint = &interface->endpoint[0].desc;
|
|
|
if (!usb_endpoint_is_int_in(endpoint))
|
|
if (!usb_endpoint_is_int_in(endpoint))
|
|
|
return -ENODEV;
|
|
return -ENODEV;
|