linux/drivers/staging
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
..
android staging: android: ashmem: Avoid range_alloc() allocation with ashmem_mutex held. 2019-02-26 11:50:17 +01:00
axis-fifo staging: axis-fifo: add CONFIG_OF dependency 2019-03-18 07:57:58 +01:00
board
clocking-wizard
comedi staging: comedi: ni_mio_common: Fix divide-by-zero for DIO cmdtest 2019-03-18 07:57:58 +01:00
emxx_udc
erofs staging: erofs: fix to handle error path of erofs_vmap() 2019-03-18 07:56:14 +01:00
fbtft Staging: fbtft: Fix line over 80 characters 2019-02-26 11:40:07 +01:00
fsl-dpaa2 Staging/IIO patches for 5.1-rc1 2019-03-06 16:29:27 -08:00
fwserial Staging: fwserial: Add blank line after declarations 2019-02-26 11:40:08 +01:00
gasket
gdm724x
goldfish
greybus Staging: greybus: Alignment should match open parenthesis 2019-02-26 11:46:51 +01:00
gs_fpgaboot
iio
ks7010 Staging: ks7010: Replace typecast to int 2019-03-01 09:05:01 +01:00
media media updates for v5.1-rc1 2019-03-09 14:45:54 -08:00
most
mt7621-dma staging: mt7621-dma: remove license boilerplate text 2019-03-03 09:25:42 +01:00
mt7621-dts staging: mt7621-dts: update ethernet settings. 2019-03-18 07:55:55 +01:00
mt7621-mmc staging: mt7621-mmc: Prefer using BIT macro 2019-02-19 11:18:00 +01:00
mt7621-pci staging, mt7621-pci: fix build without pci support 2019-03-18 07:59:04 +01:00
mt7621-pci-phy staging: mt7621-pci-phy: use 'module_init' instead of 'arch_initcall' 2019-02-19 11:12:08 +01:00
mt7621-pinctrl
mt7621-spi
netlogic staging: netlogic: Remove boilerplate license text 2019-02-26 11:40:07 +01:00
nvec
octeon
octeon-usb staging: octeon-usb: fix misspelled "re-enable" 2019-02-21 10:58:11 +01:00
olpc_dcon staging: olpc_dcon_xo_1: add missing 'const' qualifier 2019-03-18 07:57:58 +01:00
pi433
ralink-gdma
rtl8188eu staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc 2019-03-21 08:32:57 +01:00
rtl8192e staging: rtl8192e: Fix space and suspect issue 2019-02-28 19:14:53 +01:00
rtl8192u staging: rtl8192u: remove redundant nul check on pointer dev 2019-02-07 13:33:54 +01:00
rtl8712 staging: rtl8712: uninitialized memory in read_bbreg_hdl() 2019-03-21 08:32:57 +01:00
rtl8723bs staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc 2019-03-21 08:32:57 +01:00
rtlwifi staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference 2019-03-21 08:32:57 +01:00
rts5208
sm750fb staging: sm750fb: Rename setDisplayControl to set_display_control - style 2019-02-07 13:33:54 +01:00
speakup staging: speakup_soft: Fix alternate speech with other synths 2019-03-18 07:57:58 +01:00
unisys staging: visornic: use skb_put_zero() instead of open-coded version 2019-02-19 15:35:25 +01:00
vboxvideo staging/vboxvideo: prepare for drmP.h removal from drm_modeset_helper.h 2019-02-07 21:47:29 +01:00
vc04_services media updates for v5.1-rc1 2019-03-09 14:45:54 -08:00
vme
vt6655 Staging: vt6655: Align a static function declaration 2019-03-01 09:05:01 +01:00
vt6656 staging: vt6656: key: Mark expected switch fall-throughs 2019-02-19 11:14:14 +01:00
wilc1000 staging: wilc1000: fix incorrent type in initializer 2019-02-28 08:45:28 +01:00
wlan-ng staging: wlan-ng: formatting change in cfg80211.c 2019-02-08 10:31:14 +01:00
Kconfig staging: remove mt7621-eth 2019-03-18 07:55:55 +01:00
Makefile staging: remove mt7621-eth 2019-03-18 07:55:55 +01:00