]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
can: gs_usb: gs_usb_probe(): use descriptors of current altsetting
authorJohan Hovold <johan@kernel.org>
Tue, 10 Dec 2019 11:32:31 +0000 (12:32 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitc4289d8e49f363b65442fe2f9db02d42731dcd8f
treedc730b863b248be867109cee5524041d57bac6b3
parent6c4ec0da450431d5f97e43b4f55f6ba5d4d8b43c
can: gs_usb: gs_usb_probe(): use descriptors of current altsetting

BugLink: https://bugs.launchpad.net/bugs/1861934
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: Johan Hovold <johan@kernel.org>
Fixes: d08e973a77d1 ("can: gs_usb: Added support for the GS_USB CAN devices")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/can/usb/gs_usb.c