Johan Hovold
3e629da150
Input: sur40 - fix interface sanity checks
...
commit 6b32391ed675827f8425a414abbc6fbd54ea54fe upstream.
Make sure to use the current alternate setting when verifying the
interface descriptors to avoid binding to an invalid interface.
This in turn could cause the driver to misbehave or trigger a WARN() in
usb_submit_urb() that kernels with panic_on_warn set would choke on.
Fixes: bdb5c57f20 ("Input: add sur40 driver for Samsung SUR40 (aka MS Surface 2.0/Pixelsense)")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Vladis Dronov <vdronov@redhat.com>
Link: https://lore.kernel.org/r/20191210113737.4016-8-johan@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-29 16:45:28 +01:00
..
gameport
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
joystick
Input: Fix memory leak in psxpad_spi_probe
2019-12-13 08:42:44 +01:00
keyboard
chrome platform changes for v5.4
2019-09-19 14:14:28 -07:00
misc
Input: pm8xxx-vib - fix handling of separate enable register
2020-01-29 16:45:28 +01:00
mouse
Input: synaptics - switch another X1 Carbon 6 to RMI/SMbus
2019-12-13 08:42:40 +01:00
rmi4
Revert "Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers"
2020-01-29 16:45:27 +01:00
serio
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2019-09-19 14:10:54 -07:00
tablet
Input: kbtab - sanity check for endpoint type
2019-08-01 10:55:21 -07:00
touchscreen
Input: sur40 - fix interface sanity checks
2020-01-29 16:45:28 +01:00
apm-power.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
evbug.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
evdev.c
Input: input_event - fix struct padding on sparc64
2020-01-14 20:08:24 +01:00
ff-core.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
ff-memless.c
Input: ff-memless - kill timer in destroy()
2019-11-15 11:45:03 -08:00
input-compat.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-compat.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-leds.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-mt.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-polldev.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-poller.c
Input: add support for polling to input devices
2019-08-20 12:04:07 -07:00
input-poller.h
Input: add support for polling to input devices
2019-08-20 12:04:07 -07:00
input.c
Input: add safety guards to input_set_keycode()
2020-01-14 20:08:24 +01:00
joydev.c
Linux 5.2
2019-07-15 09:42:32 -07:00
Kconfig
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
Makefile
Input: add support for polling to input devices
2019-08-20 12:04:07 -07:00
matrix-keymap.c
Input: matrix-keymap - switch to use device_property_count_u32()
2019-08-12 00:03:13 -07:00
mousedev.c
*: convert stream-like files -> stream_open, even if they use noop_llseek
2019-07-14 16:09:19 +03:00
sparse-keymap.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00