projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[firefly-linux-kernel-4.4.55.git]
/
net
/
sched
/
sch_api.c
diff --git
a/net/sched/sch_api.c
b/net/sched/sch_api.c
index d7468baf890eea62291d494437ada27f31c44d95..2b935e7cfe7b7bbb78c3cc914a39929f1db766a8 100644
(file)
--- a/
net/sched/sch_api.c
+++ b/
net/sched/sch_api.c
@@
-1642,7
+1642,7
@@
static int tc_dump_tclass(struct sk_buff *skb, struct netlink_callback *cb)
struct net_device *dev;
int t, s_t;
- if (
cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm)
))
+ if (
nlmsg_len(cb->nlh) < sizeof(*tcm
))
return 0;
dev = dev_get_by_index(net, tcm->tcm_ifindex);
if (!dev)