Skip to content
Commit e548f749 authored by Dan Carpenter's avatar Dan Carpenter Committed by Johannes Berg
Browse files

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: db3e1c40 ("mac80211: Import airtime calculation code from mt76")
Reported-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20191126120910.ftr4t7me3by32aiz@kili.mountain


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 56cb31e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment