From: John Fastabend Date: Fri, 10 Feb 2012 03:19:35 +0000 (+0000) Subject: ixgbe: dcb: check setup_tc return codes X-Git-Tag: v3.4-rc1~177^2~154 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d27a3c0ad7d5f2ce9ece055b3c7c619dc42f6c;p=pandora-kernel.git 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 Signed-off-by: John Fastabend Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed