diff options
author | Huang, Tao <huangtao@rock-chips.com> | 2017-06-07 10:03:03 +0800 |
---|---|---|
committer | Huang, Tao <huangtao@rock-chips.com> | 2017-06-07 10:03:03 +0800 |
commit | ad2fc3b29a8b0f1e1c0cd40a84ea065feb2c8fbb (patch) | |
tree | e26779e9956d05689bd3a2ada93e6c5ecb1c43da /drivers/watchdog | |
parent | d7f4e179e350791bf6895267894dc3d5a8cdd27b (diff) | |
parent | 000f3de5a9866b1b3feb9ca4f66ca6a884d1d42f (diff) |
Merge tag 'lsk-v4.4-17.05-android' of git://git.linaro.org/kernel/linux-linaro-stable.git
LSK 17.05 v4.4-android
* tag 'lsk-v4.4-17.05-android': (266 commits)
BACKPORT: mm/slab: clean up DEBUG_PAGEALLOC processing code
Linux 4.4.70
UPSTREAM: arm64: hibernate: Support DEBUG_PAGEALLOC
BACKPORT: arm64: vmlinux.ld: Add mmuoff data sections and move mmuoff text into idmap
BACKPORT: arm64: Create sections.h
ANDROID: uid_sys_stats: defer io stats calulation for dead tasks
ANDROID: AVB: Fix linter errors.
ANDROID: AVB: Fix invalidate_vbmeta_submit().
drivers: char: mem: Check for address space wraparound with mmap()
nfsd: encoders mustn't use unitialized values in error cases
drm/edid: Add 10 bpc quirk for LGD 764 panel in HP zBook 17 G2
PCI: Freeze PME scan before suspending devices
PCI: Fix pci_mmap_fits() for HAVE_PCI_RESOURCE_TO_USER platforms
tracing/kprobes: Enforce kprobes teardown after testing
osf_wait4(): fix infoleak
genirq: Fix chained interrupt data ordering
uwb: fix device quirk on big-endian hosts
metag/uaccess: Check access_ok in strncpy_from_user
metag/uaccess: Fix access_ok()
iommu/vt-d: Flush the IOTLB to get rid of the initial kdump mappings
...
Diffstat (limited to 'drivers/watchdog')
-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 1a11aedc4fe8..9eb5b314ba06 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, 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; |