summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-09-29 12:42:39 +0200
committerJohan Hovold <johan@kernel.org>2020-10-01 09:37:30 +0200
commitbe4c5eb267ee73ef1d70c25c6d648625e96eb477 (patch)
tree1e7accf37cd9cf4a200a612b977402d592056b39 /drivers/fpga/fpga-region.c
parent75240ac439eafde7e5b94107ece32b11a334d985 (diff)
downloadlinux-be4c5eb267ee73ef1d70c25c6d648625e96eb477.tar.bz2
USB: serial: qcserial: fix altsetting probing
Drivers should not assume that interface descriptors have been parsed in any particular order so use the interface number to look up the second alternate setting. That number is also what the driver later use to switch setting. Note that although the driver could end up verifying the existence of the expected endpoints on the wrong interface, a later sanity check in usb_wwan_port_probe() would have caught this before it could cause any real damage. Fixes: a78b42824dd7 ("USB: serial: add qualcomm wireless modem driver") Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions