WSL2-Linux-Kernel/drivers/staging/rtl8712
Dan Carpenter 22c971db7d staging: rtl8712: uninitialized memory in read_bbreg_hdl()
Colin King reported a bug in read_bbreg_hdl():

	memcpy(pcmd->rsp, (u8 *)&val, pcmd->rspsz);

The problem is that "val" is uninitialized.

This code is obviously not useful, but so far as I can tell
"pcmd->cmdcode" is never GEN_CMD_CODE(_Read_BBREG) so it's not harmful
either.  For now the easiest fix is to just call r8712_free_cmd_obj()
and return.

Fixes: 2865d42c78 ("staging: r8712u: Add the new driver to the mainline kernel")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-21 08:32:57 +01:00
..
Kconfig
Makefile
TODO
basic_types.h
drv_types.h
ethernet.h
hal_init.c
ieee80211.c staging: rtl8712: clean up various indentation and coding style issues 2019-01-15 16:08:36 +01:00
ieee80211.h
mlme_linux.c
mlme_osdep.h
mp_custom_oid.h
os_intfs.c
osdep_intf.h
osdep_service.h
recv_linux.c
recv_osdep.h
rtl871x_cmd.c
rtl871x_cmd.h
rtl871x_debug.h
rtl871x_eeprom.c
rtl871x_eeprom.h
rtl871x_event.h
rtl871x_ht.h
rtl871x_io.c
rtl871x_io.h
rtl871x_ioctl.h
rtl871x_ioctl_linux.c
rtl871x_ioctl_rtl.c
rtl871x_ioctl_rtl.h
rtl871x_ioctl_set.c
rtl871x_ioctl_set.h
rtl871x_led.h
rtl871x_mlme.c staging: rtl8712: clean up various indentation and coding style issues 2019-01-15 16:08:36 +01:00
rtl871x_mlme.h
rtl871x_mp.c
rtl871x_mp.h
rtl871x_mp_ioctl.c
rtl871x_mp_ioctl.h
rtl871x_mp_phy_regdef.h
rtl871x_pwrctrl.c
rtl871x_pwrctrl.h
rtl871x_recv.c staging: rtl8712: Fix indentation issue 2019-02-28 08:45:28 +01:00
rtl871x_recv.h
rtl871x_rf.h
rtl871x_security.c
rtl871x_security.h
rtl871x_sta_mgt.c staging: rtl8712: clean up various indentation and coding style issues 2019-01-15 16:08:36 +01:00
rtl871x_wlan_sme.h
rtl871x_xmit.c staging: rtl8712: clean up various indentation and coding style issues 2019-01-15 16:08:36 +01:00
rtl871x_xmit.h
rtl8712_bitdef.h
rtl8712_cmd.c staging: rtl8712: uninitialized memory in read_bbreg_hdl() 2019-03-21 08:32:57 +01:00
rtl8712_cmd.h staging: rtl8712: uninitialized memory in read_bbreg_hdl() 2019-03-21 08:32:57 +01: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: drop pointless static qualifier in r8712_efuse_pg_packet_write() 2019-01-22 11:32:36 +01:00
rtl8712_efuse.h
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
rtl8712_led.c staging: rtl8712: clean up various indentation and coding style issues 2019-01-15 16:08:36 +01: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
rtl8712_recv.h
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
rtl8712_xmit.h
sta_info.h
usb_halinit.c
usb_intf.c staging: rtl8712u: Fix suspend and resume callbacks 2019-01-15 16:11:50 +01:00
usb_ops.c
usb_ops.h
usb_ops_linux.c
usb_osintf.h
wifi.h
wlan_bssdef.h
xmit_linux.c
xmit_osdep.h