linux_dsm_epyc7002/drivers/net/can/usb
Johan Hovold 5660493c63 can: kvaser_usb: fix interface sanity check
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: aec5fb2268 ("can: kvaser_usb: Add support for Kvaser USB hydra family")
Cc: stable <stable@vger.kernel.org>     # 4.19
Cc: Jimmy Assarsson <extja@kvaser.com>
Cc: Christer Beskow <chbe@kvaser.com>
Cc: Nicklas Johansson <extnj@kvaser.com>
Cc: Martin Henriksson <mh@kvaser.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2020-01-02 15:34:27 +01:00
..
kvaser_usb can: kvaser_usb: fix interface sanity check 2020-01-02 15:34:27 +01:00
peak_usb can: peak_usb: report bus recovery as well 2019-11-04 21:47:20 +01:00
ems_usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164 2019-05-30 11:26:38 -07:00
esd_usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164 2019-05-30 11:26:38 -07:00
gs_usb.c can: gs_usb: gs_can_open(): prevent memory leak 2019-11-04 21:47:20 +01:00
Kconfig drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
Makefile can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c 2018-07-27 10:40:19 +02:00
mcba_usb.c can: mcba_usb: fix use-after-free on disconnect 2019-11-04 21:47:20 +01:00
ucan.c can: ucan: fix non-atomic allocation in completion handler 2019-12-03 11:15:08 +01:00
usb_8dev.c can: usb_8dev: fix use-after-free on disconnect 2019-11-04 21:47:20 +01:00