diff options
| author | Dan Carpenter <[email protected]> | 2022-08-19 08:23:43 +0300 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2022-09-02 11:44:35 +0300 |
| commit | f97c81f5b7f8047810b0d79a8f759a83951210a0 (patch) | |
| tree | aefb4efa9835758405f862d0053a69007921d7c5 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 620d5eaeb9059636864bda83ca1c68c20ede34a5 (diff) | |
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 <[email protected]>
Reviewed-by: Jérôme Pouiller <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/Yv8eX7Xv2ubUOvW7@kili
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions