OpenCloudOS-Kernel/drivers/net/wireless/realtek/rtl8xxxu
Johan Hovold 39a4281c31 rtl8xxxu: 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: 26f1fad29a ("New driver: rtl8xxxu (mac80211)")
Cc: stable <stable@vger.kernel.org>     # 4.4
Cc: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-12-18 21:06:05 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
rtl8xxxu.h rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot 2019-10-22 11:26:13 +03:00
rtl8xxxu_8192c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295 2019-06-05 17:36:38 +02:00
rtl8xxxu_8192e.c rtl8xxxu: make arrays static, makes object smaller 2019-10-09 11:28:41 +03:00
rtl8xxxu_8723a.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295 2019-06-05 17:36:38 +02:00
rtl8xxxu_8723b.c rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot 2019-10-22 11:26:13 +03:00
rtl8xxxu_core.c rtl8xxxu: fix interface sanity check 2019-12-18 21:06:05 +02:00
rtl8xxxu_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295 2019-06-05 17:36:38 +02:00