linux-stable/drivers/staging
Colin Ian King 153c5d8191 staging: wlan-ng: fix exit return when sme->key_idx >= NUM_WEPKEYS
Currently the exit return path when sme->key_idx >= NUM_WEPKEYS is via
label 'exit' and this checks if result is non-zero, however result has
not been initialized and contains garbage.  Fix this by replacing the
goto with a return with the error code.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 0ca6d8e744 ("Staging: wlan-ng: replace switch-case statements with macro")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191014110201.9874-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-14 15:40:08 +02:00
..
android mm: introduce page_size() 2019-09-24 15:54:08 -07:00
axis-fifo
board
clocking-wizard
comedi
emxx_udc staging: emxx_udc: remove local TRUE/FALSE definition 2019-09-12 10:35:51 +01:00
exfat staging: exfat: Use kvzalloc() instead of kzalloc() for exfat_sb_info 2019-10-04 10:20:57 +02:00
fbtft Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc 2019-10-04 10:20:57 +02:00
fieldbus dt-bindings: anybus-controller: move to staging/ tree 2019-09-12 10:35:51 +01:00
fsl-dpaa2
fwserial
gasket Staging: gasket: Use temporaries to reduce line length. 2019-09-12 10:38:45 +01:00
gdm724x
goldfish
greybus staging: greybus: light: fix a couple double frees 2019-09-03 09:39:10 +02:00
gs_fpgaboot
iio
isdn Staging/IIO driver patches for 5.4-rc1 2019-09-18 11:05:34 -07:00
kpc2000 staging: kpc2000: Fix long constant sparse warning 2019-09-03 09:39:48 +02:00
ks7010
media Staging/IIO driver patches for 5.4-rc1 2019-09-18 11:05:34 -07:00
most
mt7621-dma
mt7621-dts
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec staging: nvec: make use of devm_platform_ioremap_resource 2019-09-12 10:35:50 +01:00
octeon Staging/IIO driver fixes for 5.4-rc3 2019-10-12 15:44:46 -07:00
octeon-usb
olpc_dcon
pi433 staging: pi433: Fix typo in documentation 2019-09-06 18:20:33 +02:00
qlge
ralink-gdma
rtl8188eu staging: rtl8188eu: fix HighestRate check in odm_ARFBRefresh_8188E() 2019-10-01 08:22:44 +02:00
rtl8192e staging: rtl8192e: remove unnecessary blank line 2019-09-05 09:37:31 +02:00
rtl8192u
rtl8712
rtl8723bs staging: rtl8723bs: core: Remove Macro "IS_MAC_ADDRESS_BROADCAST" 2019-09-12 10:35:52 +01:00
rts5208 staging: rts5208: Fix checkpath warning 2019-09-03 09:36:29 +02:00
sm750fb
speakup staging: speakup: document sysfs attributes 2019-10-04 10:06:05 +02:00
unisys
uwb
vc04_services staging: bcm2835-audio: Fix draining behavior regression 2019-10-01 08:22:44 +02:00
vme
vt6655 staging: vt6655: Fix memory leak in vt6655_probe 2019-10-07 12:34:55 +02:00
vt6656
wilc1000 staging: wilc1000: avoid twice IRQ handler execution for each single interrupt 2019-09-12 10:37:26 +01:00
wlan-ng staging: wlan-ng: fix exit return when sme->key_idx >= NUM_WEPKEYS 2019-10-14 15:40:08 +02:00
wusbcore
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2019-09-18 12:34:53 -07:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2019-09-18 12:34:53 -07:00