diff options
author | Johan Hovold <[email protected]> | 2019-12-10 12:32:30 +0100 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2020-01-02 15:34:27 +0100 |
commit | 5660493c637c9d83786f1c9297f403eae44177b6 (patch) | |
tree | 74d732da4582b6221a201b7af03e9eb7af7cd907 /lib/mpi/mpiutil.c | |
parent | e7153bf70c3496bac00e7e4f395bb8d8394ac0ea (diff) |
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: aec5fb2268b7 ("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]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions