linux-uconsole/drivers/net/wireless
Borislav Petkov b3afe5a7fd brcmfmac: sdio: Fix undefined behavior due to shift overflowing the constant
[ Upstream commit 6fb3a5868b ]

Fix:

  drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c: In function ‘brcmf_sdio_drivestrengthinit’:
  drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3798:2: error: case label does not reduce to an integer constant
    case SDIOD_DRVSTR_KEY(BRCM_CC_43143_CHIP_ID, 17):
    ^~~~
  drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:3809:2: error: case label does not reduce to an integer constant
    case SDIOD_DRVSTR_KEY(BRCM_CC_43362_CHIP_ID, 13):
    ^~~~

See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory
details as to why it triggers with older gccs only.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Arend van Spriel <aspriel@gmail.com>
Cc: Franky Lin <franky.lin@broadcom.com>
Cc: Hante Meuleman <hante.meuleman@broadcom.com>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: brcm80211-dev-list.pdl@broadcom.com
Cc: netdev@vger.kernel.org
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/Ykx0iRlvtBnKqtbG@zn.tnic
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 13:53:53 +02:00
..
admtek
ath ath9k: Fix usage of driver-private space in tx_info 2022-04-20 09:23:26 +02:00
atmel
broadcom brcmfmac: sdio: Fix undefined behavior due to shift overflowing the constant 2022-04-27 13:53:53 +02:00
cisco airo: work around stack usage warning 2021-05-22 11:40:51 +02:00
intel iwlwifi: mvm: Correctly set fragmented EBS 2022-04-13 21:00:57 +02:00
intersil
marvell mwifiex: Fix skb_over_panic in mwifiex_usb_recv() 2022-01-27 10:54:13 +01:00
mediatek mt76: Fix undefined behavior due to shift overflowing the constant 2022-04-27 13:53:53 +02:00
microchip wilc1000: fix possible memory leak in cfg_scan_result() 2021-11-18 14:04:03 +01:00
quantenna qtnfmac: Fix possible buffer overflow in qtnf_event_handle_external_auth 2021-05-19 10:12:58 +02:00
ralink rt2x00: do not mark device gone on EPROTO errors during start 2021-12-08 09:03:20 +01:00
realtek rtw88: 8822c: update rx settings to prevent potential hw deadlock 2022-01-27 10:54:17 +01:00
rsi rsi: Fix out-of-bounds read in rsi_read_pkt() 2022-01-27 10:54:13 +01:00
st cw1200: add missing MODULE_DEVICE_TABLE 2021-07-19 09:44:50 +02:00
ti wl1251: Fix possible buffer overflow in wl1251_cmd_scan 2021-07-19 09:44:50 +02:00
zydas
Kconfig
mac80211_hwsim.c mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work 2022-03-08 19:09:29 +01:00
mac80211_hwsim.h
Makefile
ray_cs.c ray_cs: Check ioremap return value 2022-04-08 14:40:14 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c virt_wifi: fix error on connect 2021-08-12 13:22:20 +02:00
wl3501.h wl3501_cs: Fix out-of-bounds warnings in wl3501_mgmt_join 2021-05-19 10:12:58 +02:00
wl3501_cs.c wl3501_cs: Fix out-of-bounds warnings in wl3501_mgmt_join 2021-05-19 10:12:58 +02:00