Input: xpad - validate USB endpoint type during probe
Cameron Gutman authored
commit 122d6a34

 upstream.

We should only see devices with interrupt endpoints. Ignore any other
endpoints that we find, so we don't send try to send them interrupt URBs
and trigger a WARN down in the USB stack.
Reported-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Tested-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Signed-off-by: default avatarCameron Gutman <aicommander@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
253a9694
Name Last commit Last update
..
iforce Input: iforce - validate number of endpoints before using them
Kconfig Input: add Austria Microsystem AS5011 joystick driver
Makefile Input: add Austria Microsystem AS5011 joystick driver
a3d.c Input: delete non-required instances of include <linux/init.h>
adi.c Input: delete non-required instances of include <linux/init.h>
amijoy.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
analog.c Input: joystick - use get_cycles on ARMv8
as5011.c Input: as5011 - fix error return code in as5011_probe()
cobra.c Input: delete non-required instances of include <linux/init.h>
db9.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
gamecon.c Update broken web addresses in the kernel.
gf2k.c Input: delete non-required instances of include <linux/init.h>
grip.c Input: delete non-required instances of include <linux/init.h>
grip_mp.c Input: delete non-required instances of include <linux/init.h>
guillemot.c Input: delete non-required instances of include <linux/init.h>
interact.c Input: delete non-required instances of include <linux/init.h>
joydump.c Input: delete non-required instances of include <linux/init.h>
magellan.c Input: delete non-required instances of include <linux/init.h>
maplecontrol.c Input: joysticks - use dev_get_platdata()
sidewinder.c Input: delete non-required instances of include <linux/init.h>
spaceball.c Input: delete non-required instances of include <linux/init.h>
spaceorb.c Input: delete non-required instances of include <linux/init.h>
stinger.c Input: delete non-required instances of include <linux/init.h>
tmdc.c Input: delete non-required instances of include <linux/init.h>
turbografx.c Input: turbografx - fix reference counting
twidjoy.c Input: delete non-required instances of include <linux/init.h>
walkera0701.c Input: walkera0701 - claim parport when opening the device
warrior.c Input: delete non-required instances of include <linux/init.h>
xpad.c Input: xpad - validate USB endpoint type during probe
zhenhua.c Input: delete non-required instances of include <linux/init.h>