diff options
author | 2022-08-19 08:23:43 +0300 | |
---|---|---|
committer | 2022-09-02 11:44:35 +0300 | |
commit | f97c81f5b7f8047810b0d79a8f759a83951210a0 (patch) | |
tree | aefb4efa9835758405f862d0053a69007921d7c5 /drivers/net/wireless/microchip | |
parent | wifi: rtl8xxxu: tighten bounds checking in rtl8xxxu_read_efuse() (diff) | |
download | linux-dev-f97c81f5b7f8047810b0d79a8f759a83951210a0.tar.xz linux-dev-f97c81f5b7f8047810b0d79a8f759a83951210a0.zip |
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: dcbecb497908 ("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
Diffstat (limited to 'drivers/net/wireless/microchip')
0 files changed, 0 insertions, 0 deletions