|
@@ -141,7 +141,12 @@ static int iforce_usb_probe(struct usb_interface *intf,
|
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
|
|
|
|
|
epirq = &interface->endpoint[0].desc;
|
|
epirq = &interface->endpoint[0].desc;
|
|
|
|
|
+ if (!usb_endpoint_is_int_in(epirq))
|
|
|
|
|
+ return -ENODEV;
|
|
|
|
|
+
|
|
|
epout = &interface->endpoint[1].desc;
|
|
epout = &interface->endpoint[1].desc;
|
|
|
|
|
+ if (!usb_endpoint_is_int_out(epout))
|
|
|
|
|
+ return -ENODEV;
|
|
|
|
|
|
|
|
if (!(iforce = kzalloc(sizeof(struct iforce) + 32, GFP_KERNEL)))
|
|
if (!(iforce = kzalloc(sizeof(struct iforce) + 32, GFP_KERNEL)))
|
|
|
goto fail;
|
|
goto fail;
|