forked from Minki/linux
7e5998aa74
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> |
||
---|---|---|
.. | ||
bnx2x_cmn.c | ||
bnx2x_cmn.h | ||
bnx2x_dcb.c | ||
bnx2x_dcb.h | ||
bnx2x_dump.h | ||
bnx2x_ethtool.c | ||
bnx2x_fw_defs.h | ||
bnx2x_fw_file_hdr.h | ||
bnx2x_hsi.h | ||
bnx2x_init_ops.h | ||
bnx2x_init.h | ||
bnx2x_link.c | ||
bnx2x_link.h | ||
bnx2x_main.c | ||
bnx2x_reg.h | ||
bnx2x_sp.c | ||
bnx2x_sp.h | ||
bnx2x_stats.c | ||
bnx2x_stats.h | ||
bnx2x.h | ||
Makefile |