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-23 14:51:31 -04:00
2012-03-30 17:31:56 -07:00
2012-03-28 15:58:21 -07:00
2012-04-17 22:31:59 -04:00
2012-04-01 23:09:36 -04:00
2011-08-12 23:46:51 -07:00
2012-02-22 14:44:41 -05:00
2012-03-12 17:08:34 -07:00
2012-03-12 17:08:34 -07:00