Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7d2a3899 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

can: gs_usb: gs_usb_probe(): use descriptors of current altsetting



commit 2f361cd9474ab2c4ab9ac8db20faf81e66c6279b upstream.

Make sure to always use the descriptors of the current alternate setting
to avoid future issues when accessing fields that may differ between
settings.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Fixes: d08e973a ("can: gs_usb: Added support for the GS_USB CAN devices")
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 43e6fb6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment