]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: dcb: check setup_tc return codes
authorJohn Fastabend <john.r.fastabend@intel.com>
Fri, 10 Feb 2012 03:19:35 +0000 (03:19 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:57:46 +0000 (22:57 +0800)
commitdd29dded722e16db62d5cfc6112a0aa9ac3f6a45
tree49d539184a1c77afc6993eb576410c1701ad8de3
parent821bde11c092fe7c98839e095bd2ef0976beb410
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>
(cherry picked from commit 89d27a3c0ad7d5f2ce9ece055b3c7c619dc42f6c)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_dcb_nl.c