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
..
2008-07-08 14:16:02 -04:00
2008-07-08 14:16:02 -04:00
2009-01-29 16:00:02 -05:00
2009-01-29 16:00:02 -05:00
2009-05-06 15:15:04 -04:00
2009-06-10 13:28:38 -04:00
2009-06-10 13:28:39 -04:00
2007-10-10 16:52:34 -07:00
2009-01-29 16:00:03 -05:00
2009-01-29 16:00:03 -05:00
2009-02-27 14:51:42 -05:00
2008-07-14 14:30:07 -04:00
2009-01-29 16:00:00 -05:00
2008-03-06 15:30:46 -05: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-05-20 14:46:36 -04:00
2009-06-15 15:05:58 -04:00
2009-06-03 14:06:14 -04:00
2009-06-03 14:09:08 -04:00
2009-05-20 14:46:25 -04:00
2009-05-13 15:44:39 -04:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2009-06-10 13:28:37 -04:00
2009-02-27 14:51:42 -05:00
2009-07-07 12:55:27 -04:00
2008-09-24 16:18:02 -04:00
2009-05-20 14:46:25 -04:00
2009-06-26 13:51:36 -07:00
2009-05-22 14:06:02 -04:00
2008-07-08 14:16:01 -04:00
2008-07-08 14:16:01 -04:00
2009-06-15 15:05:59 -04:00
2009-05-20 14:46:25 -04:00
2009-03-27 20:13:15 -04:00
2009-03-27 20:13:15 -04:00
2008-10-27 17:46:11 -04:00
2009-07-07 12:55:28 -04:00
2008-10-31 19:00:36 -04:00
2009-05-18 21:08:20 -07:00
2008-10-31 19:00:23 -04:00
2008-10-31 19:00:23 -04:00
2009-06-10 13:28:37 -04:00
2009-05-20 14:46:25 -04:00
2009-05-20 14:46:25 -04:00
2009-06-03 14:06:15 -04:00
2009-05-20 14:46:32 -04:00
2009-05-06 15:14:37 -04:00
2008-06-14 12:18:13 -04:00
2009-06-13 01:18:50 -07:00
2009-06-15 15:05:58 -04:00
2009-03-27 20:13:21 -04:00
2008-10-31 18:05:59 -04:00
2009-06-15 15:05:58 -04:00
2009-06-10 13:28:37 -04:00
2009-02-27 14:51:42 -05:00
2009-04-22 16:54:28 -04:00
2009-01-29 16:00:02 -05:00