linux_dsm_epyc7002/drivers/net/wireless/broadcom/brcm80211
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
..
brcmfmac brcmfmac: fix wrong strnchr usage 2018-08-31 18:48:02 +03:00
brcmsmac brcmsmac: Remove extra parentheses 2018-08-31 18:41:27 +03:00
brcmutil brcmutil: add field storing control channel to the struct brcmu_chan 2016-06-14 17:27:42 +03:00
include brcmfmac: add FT-based AKMs in brcmf_set_key_mgmt() for FT support 2018-08-31 18:44:40 +03:00
Kconfig net: Remove depends on HAS_DMA in case of platform dependency 2018-06-23 10:44:30 +09:00
Makefile