Re: [PATCH] mac80211: fix invalid read in minstrel_sort_best_tp_rates()

From: Johannes Berg
Date: Thu Aug 13 2015 - 07:53:21 EST


On Tue, 2015-07-28 at 10:30 +0200, Adrien Schildknecht wrote:
> At the last iteration of the loop, j may equal zero and thus
> tp_list[j - 1] causes an invalid read.
> Changed the logic of the loop so that j - 1 is always >= 0.
>
> Signed-off-by: Adrien Schildknecht <adrien+dev@xxxxxxxxxxx>
>
Applied, I added Cc stable.

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/