diff options
author | Colin Ian King <[email protected]> | 2020-10-29 22:24:07 +0000 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2020-11-06 10:02:24 +0100 |
commit | ba5c25236bc3d399df82ebe923490ea8d2d35cf2 (patch) | |
tree | 96b1703109e36c8625fdc22020eade9e03f39839 /tools/perf/scripts/python/syscall-counts.py | |
parent | 9c97c88d2f4b221d99491c3196da42004c195fb5 (diff) |
nl80211/cfg80211: fix potential infinite loop
The for-loop iterates with a u8 loop counter and compares this
with the loop upper limit of request->n_ssids which is an int type.
There is a potential infinite loop if n_ssids is larger than the
u8 loop counter, so fix this by making the loop counter an int.
Addresses-Coverity: ("Infinite loop")
Fixes: c8cb5b854b40 ("nl80211/cfg80211: support 6 GHz scanning")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions