WSL2-Linux-Kernel/drivers/staging/rtl8712
Johan Hovold c724f776f0 staging: rtl8712: 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: 2865d42c78 ("staging: r8712u: Add the new driver to the mainline kernel")
Cc: stable <stable@vger.kernel.org>     # 2.6.37
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191210114751.5119-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-10 13:22:21 +01:00
..
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile
TODO
basic_types.h
drv_types.h staging: rtl8712: Fixed CamelCase wkFilterRxFF0 renamed to wk_filter_rx_ff0 2019-06-13 11:52:39 +02:00
ethernet.h
hal_init.c staging: rtl8712: hal_init.c: Remove leading p from variable names 2019-06-09 13:03:52 +02:00
ieee80211.c staging: rtl8712: r8712_parse_wpa2_ie(): Change return values 2019-07-01 10:44:06 +02:00
ieee80211.h staging: rtl8712: line over 80 characters. 2019-03-18 07:05:24 +01:00
mlme_linux.c staging: rtl8712: r8712_wdg_timeout_handler: Remove function 2019-06-21 16:46:18 +02:00
mlme_osdep.h
mp_custom_oid.h
os_intfs.c staging: rtl8712: r8712_free_drv_sw(): Change return type 2019-08-08 19:58:15 +02:00
osdep_intf.h
osdep_service.h
recv_linux.c staging: rtl8712: r8712_os_recvbuf_resource_free(): Change return type 2019-08-02 14:00:56 +02:00
recv_osdep.h staging: rtl8712: r8712_recv_entry(): Change return type 2019-08-08 19:58:14 +02:00
rtl871x_cmd.c staging: rtl8712: Replace function r8712_dequeue_cmd() 2019-07-01 10:44:06 +02:00
rtl871x_cmd.h staging: rtl8712: Change return values of r8712_getrfreg_cmd() 2019-07-01 10:44:05 +02:00
rtl871x_debug.h
rtl871x_eeprom.c staging: rtl8712: Fixed CamelCase for EepromAddressSize 2019-06-10 17:57:21 +02:00
rtl871x_eeprom.h
rtl871x_event.h
rtl871x_ht.h
rtl871x_io.c staging: rtl8712: rtl87x_io : make use of kzalloc 2019-06-20 14:39:15 +02:00
rtl871x_io.h staging: rtl8712: Improve naming of include hearder guards 2019-08-21 05:48:06 -07:00
rtl871x_ioctl.h
rtl871x_ioctl_linux.c staging: rtl8712: fix boundary condition for n 2019-10-04 10:16:49 +02:00
rtl871x_ioctl_rtl.c staging: rtl8712: Change return values of r8712_getrfreg_cmd() 2019-07-01 10:44:05 +02:00
rtl871x_ioctl_rtl.h
rtl871x_ioctl_set.c staging: rtl8712: r8712_set_802_11_add_wep(): Change return values 2019-07-25 09:52:00 +02:00
rtl871x_ioctl_set.h staging: rtl8712: r8712_set_802_11_add_wep(): Change return values 2019-07-25 09:52:00 +02:00
rtl871x_led.h
rtl871x_mlme.c staging: rtl8712: r8712_set_key(): Change return values 2019-07-25 09:52:00 +02:00
rtl871x_mlme.h staging: rtl8712: r8712_set_key(): Change return values 2019-07-25 09:52:00 +02:00
rtl871x_mp.c staging: rtl8712: init_mp_priv(): Change return values 2019-07-25 09:52:00 +02:00
rtl871x_mp.h
rtl871x_mp_ioctl.c staging: rtl8712: clean up function headers 2019-10-14 15:36:55 +02:00
rtl871x_mp_ioctl.h staging: rtl8712: Remove mp_start_joinbss() 2019-06-26 10:00:09 +08:00
rtl871x_mp_phy_regdef.h
rtl871x_pwrctrl.c staging: rtl8712: r8712_register_cmd_alive(): Change return values 2019-07-25 09:52:00 +02:00
rtl871x_pwrctrl.h staging: rtl8712: r8712_register_cmd_alive(): Change return values 2019-07-25 09:52:00 +02:00
rtl871x_recv.c staging: rtl8712: r8712_recv_entry(): Change return type 2019-08-08 19:58:14 +02:00
rtl871x_recv.h staging: rtl8712: r8712_free_recvframe(): Change return type 2019-07-25 09:52:01 +02:00
rtl871x_rf.h staging: rtl8712: Improve naming of include hearder guards 2019-08-21 05:48:06 -07:00
rtl871x_security.c staging: rtl8712: r8712_aes_decrypt(): Change return type 2019-08-02 14:00:57 +02:00
rtl871x_security.h staging: rtl8712: r8712_aes_decrypt(): Change return type 2019-08-02 14:00:57 +02:00
rtl871x_sta_mgt.c staging: rtl8712: _r8712_init_sta_priv(): Change return values 2019-07-01 10:44:06 +02:00
rtl871x_wlan_sme.h
rtl871x_xmit.c staging: rtl*: Remove tasklet callback casts 2019-11-16 14:41:02 +01:00
rtl871x_xmit.h staging: rtl*: Remove tasklet callback casts 2019-11-16 14:41:02 +01:00
rtl8712_bitdef.h
rtl8712_cmd.c staging: rtl8712: Remove while loop and check_cmd_fifo() 2019-08-08 19:58:15 +02:00
rtl8712_cmd.h Merge 5.1-rc3 into staging-next 2019-04-01 07:49:24 +02:00
rtl8712_cmdctrl_bitdef.h
rtl8712_cmdctrl_regdef.h
rtl8712_debugctrl_bitdef.h
rtl8712_debugctrl_regdef.h
rtl8712_edcasetting_bitdef.h
rtl8712_edcasetting_regdef.h
rtl8712_efuse.c staging: rtl8712: rtl8712_efuse.c: Remove leading p from variable names 2019-06-20 14:47:28 +02:00
rtl8712_efuse.h staging: rtl8712: rtl8712_efuse.h: alignment should match open parenthesis 2019-03-21 20:08:08 +01:00
rtl8712_event.h
rtl8712_fifoctrl_bitdef.h
rtl8712_fifoctrl_regdef.h
rtl8712_gp_bitdef.h
rtl8712_gp_regdef.h
rtl8712_hal.h
rtl8712_interrupt_bitdef.h
rtl8712_io.c staging: rtl8712: rename bSurpriseRemoved to surprise_removed 2019-03-18 07:05:18 +01:00
rtl8712_led.c staging: rtl8712: align arguments with open parenthesis in file rtl8712_led.c 2019-10-07 12:29:36 +02:00
rtl8712_macsetting_bitdef.h
rtl8712_macsetting_regdef.h
rtl8712_powersave_bitdef.h
rtl8712_powersave_regdef.h
rtl8712_ratectrl_bitdef.h
rtl8712_ratectrl_regdef.h
rtl8712_recv.c staging: rtl*: Remove tasklet callback casts 2019-11-16 14:41:02 +01:00
rtl8712_recv.h staging: rtl8712: r8712_init_recvbuf(): Change return type 2019-07-25 09:52:01 +02:00
rtl8712_regdef.h
rtl8712_security_bitdef.h
rtl8712_spec.h
rtl8712_syscfg_bitdef.h
rtl8712_syscfg_regdef.h
rtl8712_timectrl_bitdef.h
rtl8712_timectrl_regdef.h
rtl8712_wmac_bitdef.h
rtl8712_wmac_regdef.h
rtl8712_xmit.c staging: rtl8712: r8712_dump_aggr_xframe(): Change type to void 2019-08-14 13:20:13 +02:00
rtl8712_xmit.h staging: rtl8712: r8712_dump_aggr_xframe(): Change type to void 2019-08-14 13:20:13 +02:00
sta_info.h staging: rtl8712: _r8712_init_sta_priv(): Change return values 2019-07-01 10:44:06 +02:00
usb_halinit.c staging: rtl8712: usb_halinit.c: Remove p from variable names 2019-06-09 13:03:52 +02:00
usb_intf.c staging: rtl8712: fix interface sanity check 2019-12-10 13:22:21 +01:00
usb_ops.c staging: rtl8712: usb_ops.c: Remove leading p from variable names 2019-06-09 13:03:52 +02:00
usb_ops.h
usb_ops_linux.c staging: rtl*: Remove tasklet callback casts 2019-11-16 14:41:02 +01:00
usb_osintf.h staging: rtl8712: r8712_free_drv_sw(): Change return type 2019-08-08 19:58:15 +02:00
wifi.h staging: rtl8712: wifi: checkpatch style fix 2019-08-27 19:01:26 +02:00
wlan_bssdef.h
xmit_linux.c staging: rtl8712: r8712_update_attrib(): Change return values and type 2019-08-12 16:37:15 +02:00
xmit_osdep.h