linux/drivers/usb/misc
Johan Hovold 8ae04b7d94 USB: adutux: fix interface sanity check
commit 3c11c4bed0 upstream.

Make sure to use the current alternate setting when verifying the
interface descriptors to avoid binding to an invalid interface.

Failing to do so 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: 03270634e2 ("USB: Add ADU support for Ontrak ADU devices")
Cc: stable <stable@vger.kernel.org>     # 2.6.19
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191210112601.3561-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-17 20:34:40 +01:00
..
sisusbvga USB: sisusbvga: fix oops in error path of sisusb_probe 2019-06-09 09:17:12 +02:00
adutux.c USB: adutux: fix interface sanity check 2019-12-17 20:34:40 +01:00
appledisplay.c appledisplay: fix error handling in the scheduled work 2019-12-01 09:17:42 +01:00
chaoskey.c USB: chaoskey: fix error case of a timeout 2019-12-01 09:17:41 +01:00
cypress_cy7c63.c USB: move many drivers to use DEVICE_ATTR_RW 2018-01-24 08:49:51 +01:00
cytherm.c USB: misc: fix up some remaining DEVICE_ATTR() usages 2018-01-24 08:49:52 +01:00
ehset.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
emi26.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
emi62.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
ezusb.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
ftdi-elan.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
idmouse.c USB: idmouse: fix interface sanity checks 2019-12-17 20:34:38 +01:00
iowarrior.c USB: iowarrior: fix use-after-free after driver unbind 2019-10-17 13:44:58 -07:00
isight_firmware.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
Kconfig USB: rio500: Remove Rio 500 kernel driver 2019-10-17 13:44:47 -07:00
ldusb.c USB: ldusb: use unsigned size format specifiers 2019-11-12 19:21:08 +01:00
legousbtower.c USB: legousbtower: fix a signedness bug in tower_probe() 2019-11-06 13:06:12 +01:00
lvstest.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
Makefile USB: rio500: Remove Rio 500 kernel driver 2019-10-17 13:44:47 -07:00
trancevibrator.c USB: move many drivers to use DEVICE_ATTR_RW 2018-01-24 08:49:51 +01:00
usb_u132.h USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usb251xb.c usb: usb251xb: fix to avoid potential NULL pointer dereference 2019-05-04 09:20:20 +02:00
usb3503.c usb: misc: usb3503: make sure reset is low for at least 100us 2018-01-11 18:39:52 +01:00
usb4604.c USB: misc: Remove redundant license text 2017-11-04 11:55:38 +01:00
usblcd.c USB: usblcd: fix I/O after disconnect 2019-10-17 13:45:04 -07:00
usbsevseg.c USB: misc: fix up some remaining DEVICE_ATTR() usages 2018-01-24 08:49:52 +01:00
usbtest.c usb: usbtest: use irqsave() in USB's complete callback 2018-07-06 16:36:19 +02:00
uss720.c usb: misc: uss720: Fix two sleep-in-atomic-context bugs 2018-09-05 14:36:53 +02:00
yurex.c USB: yurex: fix NULL-derefs on disconnect 2019-10-17 13:44:49 -07:00