Adrien Schildknecht f5eeb5fa19 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>
2015-08-13 13:52:34 +02:00
..
2015-01-27 11:07:35 +01:00
2015-01-27 11:09:13 +01:00
2015-01-27 11:09:13 +01:00
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2015-03-30 10:48:26 +02:00
2015-05-11 19:16:04 +02:00
2014-04-29 17:59:27 +02:00
2014-04-09 14:49:43 +02:00
2014-11-04 13:18:21 +01:00
2015-04-20 13:05:29 +02:00
2013-12-18 10:33:06 +01:00
2015-05-11 14:51:29 +02:00