Dan Carpenter
7e5998aa74
bnx2x: off by one in bnx2x_ets_e3b0_sp_pri_to_cos_set()
...
The sp_pri_to_cos[] array size depends on the config but lets say it is
BX_E3B0_MAX_NUM_COS_PORT0 and max_num_of_cos is also
DCBX_E3B0_MAX_NUM_COS_PORT0. In the original code
"pri == max_num_of_cos" was accepted but it is one past the end of the
array.
Also we used "pri" before capping it. It's a harmless read past the end
of the array, but it would affect which error message gets printed.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-19 15:22:44 -04:00
..
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-02-06 11:41:20 -05:00
2012-02-19 19:03:04 -05:00
2012-02-23 17:03:20 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-02-08 18:46:38 -05:00
2012-04-13 13:34:20 -04:00
2012-04-19 15:22:44 -04:00
2012-03-21 13:36:41 -07:00
2012-02-15 15:34:16 -05:00
2012-02-15 15:34:17 -05:00
2012-04-05 15:25:50 -07:00
2012-03-28 15:58:21 -07:00
2012-03-08 00:28:19 -08:00
2012-02-15 15:34:16 -05:00
2012-02-24 15:40:59 -05:00
2012-03-28 18:30:03 +01:00
2012-03-19 16:52:17 -04:00
2012-02-15 15:34:16 -05:00
2012-04-02 17:53:39 -07:00
2012-03-28 18:30:03 +01:00
2012-02-06 11:52:27 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 11:33:24 +11:00
2012-02-06 11:52:27 -05:00
2012-04-17 15:43:02 -07:00
2012-04-04 18:14:04 -04:00
2012-04-04 20:34:29 -04:00
2012-04-19 13:25:03 -04:00
2012-02-15 15:34:17 -05:00
2012-01-31 16:20:48 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-02-08 18:46:38 -05:00
2012-03-28 18:30:03 +01:00
2012-04-01 16:47:12 -04:00
2012-02-13 16:04:09 -05:00
2012-03-09 13:55:38 -08:00
2012-03-05 21:16:26 -05:00
2012-02-23 17:03:20 -05:00
2012-03-23 14:51:31 -04:00
2012-02-08 18:46:38 -05:00
2012-02-15 15:34:16 -05:00
2012-04-13 13:41:52 -04:00
2012-04-01 23:22:11 -04:00
2012-03-28 18:30:03 +01:00
2012-03-30 17:31:56 -07:00
2011-12-27 13:17:34 -05:00
2011-11-01 19:30:38 -04:00
2012-02-15 15:34:16 -05:00
2012-04-13 14:07:51 -04:00
2012-04-04 18:38:31 -04:00
2012-03-28 15:58:21 -07:00
2012-02-08 18:46:38 -05:00
2012-04-17 22:31:59 -04:00
2012-04-02 13:17:37 -04:00
2012-02-15 15:34:16 -05:00
2012-03-28 18:30:03 +01:00
2012-04-01 23:09:36 -04:00
2012-04-13 13:58:42 -04:00
2012-03-28 18:30:03 +01:00
2012-02-24 15:41:00 -05:00
2012-02-15 15:34:16 -05:00
2011-08-12 23:46:51 -07:00
2012-02-17 15:58:06 -05:00
2012-02-06 11:48:09 -05:00
2012-02-26 21:55:51 -05:00
2012-02-22 14:44:41 -05:00
2012-03-12 17:08:34 -07:00
2012-03-28 18:30:03 +01:00
2012-02-19 19:02:42 -05:00
2012-03-12 17:08:34 -07:00
2012-02-15 15:34:16 -05:00
2012-02-08 18:46:38 -05:00
2012-02-08 18:46:38 -05:00