linux_dsm_epyc7002/drivers/net/wireless
Kees Cook f8279dad4e rtlwifi: rtl8192cu: Remove uninitialized_var() usage
Using uninitialized_var() is dangerous as it papers over real bugs[1]
(or can in the future), and suppresses unrelated compiler warnings (e.g.
"unused variable"). If the compiler thinks it is uninitialized, either
simply initialize the variable or make compiler changes. As a precursor
to removing[2] this[3] macro[4], just initialize this variable to NULL,
and avoid sending garbage by returning.

[1] https://lore.kernel.org/lkml/20200603174714.192027-1-glider@google.com/
[2] https://lore.kernel.org/lkml/CA+55aFw+Vbj0i=1TGqCR5vQkCzWJ0QxK6CernOU6eedsudAixw@mail.gmail.com/
[3] https://lore.kernel.org/lkml/CA+55aFwgbgqhbp1fkxvRKEpzyR5J8n1vKT1VZdz9knmPuXhOeg@mail.gmail.com/
[4] https://lore.kernel.org/lkml/CA+55aFz2500WfbKXAx8s67wrm9=yVJu65TpLgN_ybYNv0VEOKA@mail.gmail.com/

Fixes: dc0313f466 ("rtlwifi: rtl8192cu: Add routine hw")
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200620033007.1444705-6-keescook@chromium.org
2020-07-15 13:36:39 +03:00
..
admtek treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2020-06-15 20:18:39 +03:00
atmel atmel: fix wiki website url 2020-07-15 13:18:40 +03:00
broadcom b43: Remove uninitialized_var() usage 2020-07-15 13:36:38 +03:00
cisco treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
intel First set of patches intended for v5.9 2020-06-15 20:23:23 +03:00
intersil orinoco_usb: fix spelling mistake 2020-07-15 13:36:01 +03:00
marvell mwifiex: Prevent memory corruption handling keys 2020-07-15 12:13:30 +03:00
mediatek treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
microchip wilc1000: let wilc_mac_xmit() return NETDEV_TX_OK 2020-07-14 20:53:29 +03:00
quantenna One batch of changes, containing: 2020-05-26 20:17:35 -07:00
ralink treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
realtek rtlwifi: rtl8192cu: Remove uninitialized_var() usage 2020-07-15 13:36:39 +03:00
rsi treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
st treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
ti wlcore: Remove pointless spinlock 2020-07-15 12:12:31 +03:00
zydas treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Kconfig wireless: fix wiki website url in main Kconfig 2020-07-15 13:18:39 +03:00
mac80211_hwsim.c mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability 2020-05-27 10:03:27 +02:00
mac80211_hwsim.h mac80211_hwsim: notify wmediumd of used MAC addresses 2020-04-24 11:45:47 +02:00
Makefile wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
ray_cs.c ray_cs: use true,false for bool variable 2020-05-06 11:33:23 +03:00
ray_cs.h
rayctl.h ray_cs: Replace zero-length array with flexible-array member 2020-03-23 19:18:27 +02:00
rndis_wlan.c rndis_wlan: Replace zero-length array with flexible-array 2020-05-12 11:56:55 +03:00
virt_wifi.c virt_wifi: implement ndo_get_iflink 2020-03-20 14:42:20 +01:00
wl3501_cs.c
wl3501.h wl3501_cs: Replace zero-length array with flexible-array member 2020-03-23 19:21:21 +02:00