|
@@ -347,6 +347,9 @@ static int idmouse_probe(struct usb_interface *interface,
|
|
if (iface_desc->desc.bInterfaceClass != 0x0A)
|
|
if (iface_desc->desc.bInterfaceClass != 0x0A)
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
|
|
|
|
|
+ if (iface_desc->desc.bNumEndpoints < 1)
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
/* allocate memory for our device state and initialize it */
|
|
/* allocate memory for our device state and initialize it */
|
|
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
|
|
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
|
|
if (dev == NULL)
|
|
if (dev == NULL)
|