diff options
author | Adrien Schildknecht <adrien+dev@schischi.me> | 2015-07-28 10:30:16 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-08-13 13:52:34 +0200 |
commit | f5eeb5fa191fd7b634cbc4883ac58f3b2184dbc5 (patch) | |
tree | 9749e71358a173faba86a0188fc5a4a787ba1aaa /arch/x86/kvm/lapic.c | |
parent | cfg80211: use RTNL locked reg_can_beacon for IR-relaxation (diff) | |
download | linux-f5eeb5fa191fd7b634cbc4883ac58f3b2184dbc5.tar.xz linux-f5eeb5fa191fd7b634cbc4883ac58f3b2184dbc5.zip |
mac80211: fix invalid read in minstrel_sort_best_tp_rates()
At the last iteration of the loop, j may equal zero and thus
tp_list[j - 1] causes an invalid read.
Change the logic of the loop so that j - 1 is always >= 0.
Cc: stable@vger.kernel.org
Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
0 files changed, 0 insertions, 0 deletions