diff options
| -rw-r--r-- | drivers/watchdog/pcwd_usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/watchdog/pcwd_usb.c b/drivers/watchdog/pcwd_usb.c index 99ebf6ea3de6..5615f4013924 100644 --- a/drivers/watchdog/pcwd_usb.c +++ b/drivers/watchdog/pcwd_usb.c | |||
| @@ -630,6 +630,9 @@ static int usb_pcwd_probe(struct usb_interface *interface, | |||
| 630 | return -ENODEV; | 630 | return -ENODEV; |
| 631 | } | 631 | } |
| 632 | 632 | ||
| 633 | if (iface_desc->desc.bNumEndpoints < 1) | ||
| 634 | return -ENODEV; | ||
| 635 | |||
| 633 | /* check out the endpoint: it has to be Interrupt & IN */ | 636 | /* check out the endpoint: it has to be Interrupt & IN */ |
| 634 | endpoint = &iface_desc->endpoint[0].desc; | 637 | endpoint = &iface_desc->endpoint[0].desc; |
| 635 | 638 | ||
