aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorPhil Elwell <[email protected]>2022-01-18 15:45:14 +0000
committerKalle Valo <[email protected]>2022-01-28 16:06:04 +0200
commit665408f4c3a5c83e712871daa062721624b2b79e (patch)
treeab495bf6928178b2ba8b20c3adb44196620a394e /lib/test_overflow.c
parent7674b7b559b683478c3832527c59bceb169e701d (diff)
brcmfmac: firmware: Fix crash in brcm_alt_fw_path
The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected by a check to the validity of the fwctx->req->board_type pointer. This results in a crash in strlcat when, for example, the WLAN chip is found in a USB dongle. Prevent the crash by adding the necessary check. See: https://github.com/raspberrypi/linux/issues/4833 Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries") Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions