qlcnic: dcb: a couple off by one bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 1 Mar 2014 13:54:36 +0000 (16:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 20:38:12 +0000 (15:38 -0500)
commite842b068bf9a9eb7b38e0e1875357440a1fd2169
treee11cd109442936f6e1d3d87923e91130c27746b2
parentc84a57113f59486e6688be1cd443b96e3118efa0
qlcnic: dcb: a couple off by one bugs

The ->tc_cfg[] array has QLC_DCB_MAX_TC (8) elements so the check is
off by one.  These functions are always called with valid values though
so it doesn't affect how the code works.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c