]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Check rate->idx before rate->count
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 14 Nov 2011 14:28:19 +0000 (15:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 17 Nov 2011 20:43:56 +0000 (15:43 -0500)
commit7cdabc0c3fc700064db7e8f319e1d5c43f7ba595
tree8dc3cac0d81d9036ed96832d538a3d1811135a51
parenta73e23a7a8cca8e4ccbfac920fcd48cdd8f93cc2
mac80211: Check rate->idx before rate->count

The drivers are not required to fill in rate->count if rate->idx is set
to -1. Hence, we should first check rate->idx before accessing
rate->count.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rc80211_minstrel_ht.c