commit | e842b068bf9a9eb7b38e0e1875357440a1fd2169 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Mar 01 16:54:36 2014 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 03 15:38:12 2014 -0500 |
tree | e11cd109442936f6e1d3d87923e91130c27746b2 | |
parent | c84a57113f59486e6688be1cd443b96e3118efa0 [diff] |
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>