mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 10:32:24 +00:00
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 <[email protected]> # 4.19
Cc: Jimmy Assarsson <[email protected]>
Cc: Christer Beskow <[email protected]>
Cc: Nicklas Johansson <[email protected]>
Cc: Martin Henriksson <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>