projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'mmc-v4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git]
/
drivers
/
watchdog
/
pcwd_usb.c
diff --git
a/drivers/watchdog/pcwd_usb.c
b/drivers/watchdog/pcwd_usb.c
index 99ebf6ea3de648d881de4ef1f609d1f4d29f5ca0..5615f40139246a19de1be39df6f6ca60b7a705b9 100644
(file)
--- 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,
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;