x86/bitops: Move BIT_64() for a wider use
[pandora-kernel.git] / drivers / watchdog / pcwd_usb.c
index 748a74b..7da3298 100644 (file)
@@ -641,6 +641,9 @@ static int usb_pcwd_probe(struct usb_interface *interface,
                return -ENODEV;
        }
 
+       if (iface_desc->desc.bNumEndpoints < 1)
+               return -ENODEV;
+
        /* check out the endpoint: it has to be Interrupt & IN */
        endpoint = &iface_desc->endpoint[0].desc;