original_kernel/drivers/net/wireless/rsi
Johan Hovold 3139b18090 rsi_91x_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: dad0d04fa7 ("rsi: Add RS9113 wireless driver")
Cc: stable <stable@vger.kernel.org>     # 3.15
Cc: Fariya Fatima <fariyaf@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-12-18 21:06:06 +02:00
..
Kconfig
Makefile
rsi_91x_coex.c
rsi_91x_core.c
rsi_91x_debugfs.c
rsi_91x_hal.c
rsi_91x_mac80211.c
rsi_91x_main.c
rsi_91x_mgmt.c
rsi_91x_ps.c
rsi_91x_sdio.c
rsi_91x_sdio_ops.c
rsi_91x_usb.c rsi_91x_usb: fix interface sanity check 2019-12-18 21:06:06 +02:00
rsi_91x_usb_ops.c
rsi_boot_params.h
rsi_coex.h
rsi_common.h
rsi_debugfs.h
rsi_hal.h
rsi_main.h
rsi_mgmt.h
rsi_ps.h
rsi_sdio.h
rsi_usb.h