diff options
author | Colin Ian King <[email protected]> | 2020-01-26 00:09:54 +0000 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2020-01-26 17:51:47 +0200 |
commit | c2f9a4e4a5abfc84c01b738496b3fd2d471e0b18 (patch) | |
tree | 00e37d8a1b950179b4e12c4eb37c0630f96b4415 /tools/perf/scripts/python | |
parent | f76c34082b24534c813a9e3e175ef778c11e9950 (diff) |
iwlegacy: ensure loop counter addr does not wrap and cause an infinite loop
The loop counter addr is a u16 where as the upper limit of the loop
is an int. In the unlikely event that the il->cfg->eeprom_size is
greater than 64K then we end up with an infinite loop since addr will
wrap around an never reach upper loop limit. Fix this by making addr
an int.
Addresses-Coverity: ("Infinite loop")
Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Stanislaw Gruszka <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions