From: Don Skidmore Date: Mon, 15 Dec 2008 09:06:23 +0000 (-0800) Subject: net: fix dcbnl_setnumtcs operation check X-Git-Tag: MMI-PSA29.97-13-9~30474^2~186 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b124a8e14c04378466ddfe63e41fc5035f957eb;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net: fix dcbnl_setnumtcs operation check dcbml_setnumtcs wasn't checking for the presence of the setnumtcs function. Instead, it was checking for setstate which was a bug. Signed-off-by: Don Skidmore Signed-off-by: Eric W Multanen Signed-off-by: Peter P Waskiewicz Jr Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index 79a351d323af..a1254061629f 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c @@ -469,7 +469,7 @@ static int dcbnl_setnumtcs(struct net_device *netdev, struct nlattr **tb, u8 value; int i; - if (!tb[DCB_ATTR_NUMTCS] || !netdev->dcbnl_ops->setstate) + if (!tb[DCB_ATTR_NUMTCS] || !netdev->dcbnl_ops->setnumtcs) return ret; ret = nla_parse_nested(data, DCB_NUMTCS_ATTR_MAX, tb[DCB_ATTR_NUMTCS],