alistair23-linux/drivers/net/ethernet/broadcom/bnx2x
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
..
bnx2x.h bnx2x: previous driver unload revised 2012-03-27 22:41:34 -04:00
bnx2x_cmn.c bnx2x: Clear MDC/MDIO warning message 2012-04-04 18:24:23 -04:00
bnx2x_cmn.h bnx2x: previous driver unload revised 2012-03-27 22:41:34 -04:00
bnx2x_dcb.c bnx2x: added TLV_NOT_FOUND flags to the dcb 2012-03-19 16:53:07 -04:00
bnx2x_dcb.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_dump.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_ethtool.c bnx2x: reduced sparse warnings 2012-03-19 16:53:06 -04:00
bnx2x_fw_defs.h bnx2x: correction to firmware interface 2012-04-03 19:03:36 -04:00
bnx2x_fw_file_hdr.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_hsi.h bnx2x: previous driver unload revised 2012-03-27 22:41:34 -04:00
bnx2x_init.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_init_ops.h bnx2x: Update version to 1.72.0 and copyrights 2012-01-26 13:39:52 -05:00
bnx2x_link.c bnx2x: off by one in bnx2x_ets_e3b0_sp_pri_to_cos_set() 2012-04-19 15:22:44 -04:00
bnx2x_link.h bnx2x: previous driver unload revised 2012-03-27 22:41:34 -04:00
bnx2x_main.c bnx2x: previous driver unload revised 2012-03-27 22:41:34 -04:00
bnx2x_reg.h bnx2x: Clear BCM84833 LED after fan failure 2012-04-04 18:24:23 -04:00
bnx2x_sp.c bnx2x: fix vector traveling while looking for an empty entry 2012-03-27 22:41:34 -04:00
bnx2x_sp.h bnx2x: revised driver prints 2012-03-19 16:52:48 -04:00
bnx2x_stats.c bnx2x: consistent statistics for old FW 2012-03-19 16:53:07 -04:00
bnx2x_stats.h bnx2x: consistent statistics for old FW 2012-03-19 16:53:07 -04:00
Makefile broadcom: Move the Broadcom drivers 2011-08-10 19:54:39 -07:00