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
2007-05-05 11:46:38 -07:00
2009-06-03 14:06:14 -04:00
2009-04-22 16:54:28 -04:00
2009-04-22 16:57:17 -04:00
2009-06-03 14:06:14 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2009-02-27 14:51:42 -05: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
2009-05-06 15:14:37 -04:00
2009-03-27 20:13:21 -04:00
2008-10-31 18:05:59 -04:00
2009-04-22 16:54:28 -04:00