Luciano Coelho 3938b45c1c mac80211: minstrel: avoid accessing negative indices in rix_to_ndx()
If rix is not found in mi->r[], i will become -1 after the loop.  This value
is eventually used to access arrays, so we were accessing arrays with a
negative index, which is obviously not what we want to do.  This patch fixes
this potential problem.

Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-07-07 12:55:28 -04:00
..
2009-06-10 13:28:39 -04:00
2009-06-15 15:05:57 -04:00
2009-06-03 14:06:14 -04:00
2009-06-03 14:06:14 -04:00
2009-06-26 13:51:36 -07:00
2009-06-15 15:05:59 -04:00
2009-05-20 14:46:25 -04:00
2009-05-20 14:46:32 -04:00