summaryrefslogtreecommitdiff
path: root/net/rfkill
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-11-26 15:09:39 +0300
committerJohannes Berg <johannes.berg@intel.com>2019-12-13 12:08:22 +0300
commite548f749b096133d6da3dd7235ecfc6bd67be306 (patch)
tree51dbad78a68b44786e9f937b9ee0dbaf9c64bc98 /net/rfkill
parent56cb31e185adb61f930743a9b70e700a43625386 (diff)
downloadlinux-e548f749b096133d6da3dd7235ecfc6bd67be306.tar.xz
mac80211: airtime: Fix an off by one in ieee80211_calc_rx_airtime()
This code was copied from mt76 and inherited an off by one bug from there. The > should be >= so that we don't read one element beyond the end of the array. Fixes: db3e1c40cf2f ("mac80211: Import airtime calculation code from mt76") Reported-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Toke Høiland-Jørgensen <toke@redhat.com> Link: https://lore.kernel.org/r/20191126120910.ftr4t7me3by32aiz@kili.mountain Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/rfkill')
0 files changed, 0 insertions, 0 deletions