linux_dsm_epyc7002/drivers/net/wireless
Rasmus Villemoes cb18e2e9ec brcmfmac: fix wrong strnchr usage
strnchr takes arguments in the order of its name: string, max bytes to
read, character to search for. Here we're passing '\n' aka 10 as the
buffer size, and searching for sizeof(buf) aka BRCMF_DCMD_SMLEN aka
256 (aka '\0', since it's implicitly converted to char) within those 10
bytes.

Just interchanging the last two arguments would still leave a bug,
because if we've been successful once, there are not sizeof(buf)
characters left after the new value of p.

Since clmver is immediately afterwards passed as a %s argument, I assume
that it is actually a properly nul-terminated string. For that case, we
have strreplace().

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-08-31 18:48:02 +03:00
..
admtek net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2018-08-28 19:39:22 +03:00
atmel atmel: Replace mdelay() with msleep() in probe_atmel_card() 2018-07-31 10:25:33 +03:00
broadcom brcmfmac: fix wrong strnchr usage 2018-08-31 18:48:02 +03:00
cisco airo: remove unused variables len and dev and clean up formatting 2018-07-31 10:17:19 +03:00
intel iwlwifi: fix devices with PCI Device ID 0x34F0 and 11ac RF modules 2018-08-31 11:38:42 +03:00
intersil orinoco: remove unused array encaps_hdr and macro ENCAPS_OVERHEAD 2018-08-31 18:45:19 +03:00
marvell mwifex: free rx_cmd skb in suspended state 2018-08-31 18:46:53 +03:00
mediatek mt76x2u: Add support for Alfa AWUS036ACM 2018-08-31 18:43:04 +03:00
quantenna qtnfmac: implement basic WoWLAN support 2018-08-02 21:55:49 +03:00
ralink rt2x00: use simple_read_from_buffer() 2018-08-31 18:47:29 +03:00
realtek rtl8187: Fix warning generated when strncpy() destination length matches the sixe argument 2018-08-31 18:46:19 +03:00
rsi rsi: remove redundant variables bss, wh and temp_flash_content 2018-08-09 18:13:46 +03:00
st cw1200: Remove extra parentheses 2018-08-31 18:42:25 +03:00
ti Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
zydas zd1211rw: use irqsave() in USB's complete callback 2018-06-27 19:12:43 +03:00
Kconfig
mac80211_hwsim.c mac80211_hwsim: Add support for HE 2018-07-09 10:21:28 +02:00
mac80211_hwsim.h mac80211_hwsim: add permanent mac address option for new radios 2018-01-31 12:45:35 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ray_cs.c ray_cs: remove redundant pointer 'p' 2018-07-31 10:19:50 +03:00
ray_cs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rayctl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rndis_wlan.c wireless-drivers: use BIT_ULL for NL80211_STA_INFO_ attribute types 2018-06-27 19:07:39 +03:00
wl3501_cs.c wl3501_cs: fix spelling mistake: "Insupported" -> "Unsupported" 2017-07-28 18:06:31 +03:00
wl3501.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00