diff options
author | John Fastabend <john.r.fastabend@intel.com> | 2012-02-10 07:19:35 +0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-03-03 06:11:24 +0400 |
commit | 89d27a3c0ad7d5f2ce9ece055b3c7c619dc42f6c (patch) | |
tree | 26f7026391dc63d31cf94ed33730bc2fc1ab25f6 /include | |
parent | 6f66342c1ecd59467d4579176dd81a4e837a06ef (diff) | |
download | linux-89d27a3c0ad7d5f2ce9ece055b3c7c619dc42f6c.tar.xz |
ixgbe: dcb: check setup_tc return codes
dcb netlink code calls setup_tc to init hardware traffic classes
to use for DCB. At some call sites the return values are not
checked for errors and in one case may return -EINVAL back to
the net/dcbnl.c caller which is expecting a u8.
This fixes some smatch hits and although failures are never
seen in practive its best to check return codes.
Reported-by: Dan Carenter <dan.carpenter@oracle.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions