diff options
author | Sriram R <srirrama@codeaurora.org> | 2018-10-03 06:13:50 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-10-13 20:15:32 +0300 |
commit | 34e141eea7dd8525dd1ef7a925459e455b4d307f (patch) | |
tree | 789116b92732dde66f548ec7a89254af65336ba1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9434dca95117c493575ab1bd255d323dabf4184a (diff) | |
download | linux-34e141eea7dd8525dd1ef7a925459e455b4d307f.tar.xz |
ath10k: fix possible out of bound access of ath10k_rates array
While using 'ath10k_mac_get_rate_hw_value()' to obtain the hw value
from the passed bitrate, there is a chance of out of bound array access
when wrong bitrate is passed. This is fixed by comparing the bitrates
within the correct size of the ath10k_rates array.
Fixes commit f279294e9ee2 ("ath10k: add support for configuring management
packet rate"). Also correction made to some indents used in the above commit.
Signed-off-by: Sriram R <srirrama@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions