git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'stable-3.2' into pandora-3.2
[pandora-kernel.git]
/
drivers
/
watchdog
/
pcwd_usb.c
diff --git
a/drivers/watchdog/pcwd_usb.c
b/drivers/watchdog/pcwd_usb.c
index
748a74b
..
7da3298
100644
(file)
--- a/
drivers/watchdog/pcwd_usb.c
+++ b/
drivers/watchdog/pcwd_usb.c
@@
-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;