linux/drivers/net/wireless/silabs/wfx
Dan Carpenter f97c81f5b7 wifi: wfx: prevent underflow in wfx_send_pds()
This does a "chunk_len - 4" subtraction later when it calls:

	ret = wfx_hif_configuration(wdev, buf + 4, chunk_len - 4);

so check for "chunk_len" is less than 4.

Fixes: dcbecb4979 ("staging: wfx: allow new PDS format")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/Yv8eX7Xv2ubUOvW7@kili
2022-09-02 11:44:35 +03:00
..
Kconfig
Makefile
bh.c
bh.h
bus.h
bus_sdio.c
bus_spi.c
data_rx.c wfx: use container_of() to get vif 2022-05-11 08:32:57 +03:00
data_rx.h
data_tx.c wfx: use container_of() to get vif 2022-05-11 08:32:57 +03:00
data_tx.h
debug.c
debug.h
fwio.c wifi: wfx: Remove redundant NULL check before release_firmware() call 2022-06-10 10:38:55 +03:00
fwio.h
hif_api_cmd.h
hif_api_general.h
hif_api_mib.h
hif_rx.c
hif_rx.h
hif_tx.c wifi: mac80211: move interface config to new struct 2022-06-20 12:55:03 +02:00
hif_tx.h
hif_tx_mib.c
hif_tx_mib.h
hwio.c
hwio.h
key.c wfx: use container_of() to get vif 2022-05-11 08:32:57 +03:00
key.h
main.c wifi: wfx: prevent underflow in wfx_send_pds() 2022-09-02 11:44:35 +03:00
main.h
queue.c wfx: use container_of() to get vif 2022-05-11 08:32:57 +03:00
queue.h
scan.c wfx: use container_of() to get vif 2022-05-11 08:32:57 +03:00
scan.h
sta.c wifi: mac80211: replace link_id with link_conf in switch/(un)assign_vif_chanctx() 2022-07-15 11:43:20 +02:00
sta.h wifi: mac80211: replace link_id with link_conf in switch/(un)assign_vif_chanctx() 2022-07-15 11:43:20 +02:00
traces.h
wfx.h wfx: use container_of() to get vif 2022-05-11 08:32:57 +03:00