diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/cls_cgroup.c | 3 | ||||
-rw-r--r-- | net/sched/cls_flow.c | 2 | ||||
-rw-r--r-- | net/sched/cls_fw.c | 3 | ||||
-rw-r--r-- | net/sched/cls_route.c | 3 | ||||
-rw-r--r-- | net/sched/cls_rsvp.h | 3 | ||||
-rw-r--r-- | net/sched/cls_tcindex.c | 7 |
6 files changed, 8 insertions, 13 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 741bfa7debb2..221697ab0247 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c | |||
@@ -177,7 +177,6 @@ static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, unsigned long | |||
177 | struct sk_buff *skb, struct tcmsg *t) | 177 | struct sk_buff *skb, struct tcmsg *t) |
178 | { | 178 | { |
179 | struct cls_cgroup_head *head = rtnl_dereference(tp->root); | 179 | struct cls_cgroup_head *head = rtnl_dereference(tp->root); |
180 | unsigned char *b = skb_tail_pointer(skb); | ||
181 | struct nlattr *nest; | 180 | struct nlattr *nest; |
182 | 181 | ||
183 | t->tcm_handle = head->handle; | 182 | t->tcm_handle = head->handle; |
@@ -198,7 +197,7 @@ static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, unsigned long | |||
198 | return skb->len; | 197 | return skb->len; |
199 | 198 | ||
200 | nla_put_failure: | 199 | nla_put_failure: |
201 | nlmsg_trim(skb, b); | 200 | nla_nest_cancel(skb, nest); |
202 | return -1; | 201 | return -1; |
203 | } | 202 | } |
204 | 203 | ||
diff --git a/net/sched/cls_flow.c b/net/sched/cls_flow.c index 8e227180cabb..15d68f24a521 100644 --- a/net/sched/cls_flow.c +++ b/net/sched/cls_flow.c | |||
@@ -638,7 +638,7 @@ static int flow_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
638 | return skb->len; | 638 | return skb->len; |
639 | 639 | ||
640 | nla_put_failure: | 640 | nla_put_failure: |
641 | nlmsg_trim(skb, nest); | 641 | nla_nest_cancel(skb, nest); |
642 | return -1; | 642 | return -1; |
643 | } | 643 | } |
644 | 644 | ||
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c index 23fda2ac0d19..a5269f76004c 100644 --- a/net/sched/cls_fw.c +++ b/net/sched/cls_fw.c | |||
@@ -356,7 +356,6 @@ static int fw_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
356 | { | 356 | { |
357 | struct fw_head *head = rtnl_dereference(tp->root); | 357 | struct fw_head *head = rtnl_dereference(tp->root); |
358 | struct fw_filter *f = (struct fw_filter *)fh; | 358 | struct fw_filter *f = (struct fw_filter *)fh; |
359 | unsigned char *b = skb_tail_pointer(skb); | ||
360 | struct nlattr *nest; | 359 | struct nlattr *nest; |
361 | 360 | ||
362 | if (f == NULL) | 361 | if (f == NULL) |
@@ -397,7 +396,7 @@ static int fw_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
397 | return skb->len; | 396 | return skb->len; |
398 | 397 | ||
399 | nla_put_failure: | 398 | nla_put_failure: |
400 | nlmsg_trim(skb, b); | 399 | nla_nest_cancel(skb, nest); |
401 | return -1; | 400 | return -1; |
402 | } | 401 | } |
403 | 402 | ||
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c index 098a27360b91..2ecd24688554 100644 --- a/net/sched/cls_route.c +++ b/net/sched/cls_route.c | |||
@@ -593,7 +593,6 @@ static int route4_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
593 | struct sk_buff *skb, struct tcmsg *t) | 593 | struct sk_buff *skb, struct tcmsg *t) |
594 | { | 594 | { |
595 | struct route4_filter *f = (struct route4_filter *)fh; | 595 | struct route4_filter *f = (struct route4_filter *)fh; |
596 | unsigned char *b = skb_tail_pointer(skb); | ||
597 | struct nlattr *nest; | 596 | struct nlattr *nest; |
598 | u32 id; | 597 | u32 id; |
599 | 598 | ||
@@ -635,7 +634,7 @@ static int route4_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
635 | return skb->len; | 634 | return skb->len; |
636 | 635 | ||
637 | nla_put_failure: | 636 | nla_put_failure: |
638 | nlmsg_trim(skb, b); | 637 | nla_nest_cancel(skb, nest); |
639 | return -1; | 638 | return -1; |
640 | } | 639 | } |
641 | 640 | ||
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h index b7af3623a26a..edd8ade3fbc1 100644 --- a/net/sched/cls_rsvp.h +++ b/net/sched/cls_rsvp.h | |||
@@ -653,7 +653,6 @@ static int rsvp_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
653 | { | 653 | { |
654 | struct rsvp_filter *f = (struct rsvp_filter *)fh; | 654 | struct rsvp_filter *f = (struct rsvp_filter *)fh; |
655 | struct rsvp_session *s; | 655 | struct rsvp_session *s; |
656 | unsigned char *b = skb_tail_pointer(skb); | ||
657 | struct nlattr *nest; | 656 | struct nlattr *nest; |
658 | struct tc_rsvp_pinfo pinfo; | 657 | struct tc_rsvp_pinfo pinfo; |
659 | 658 | ||
@@ -694,7 +693,7 @@ static int rsvp_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
694 | return skb->len; | 693 | return skb->len; |
695 | 694 | ||
696 | nla_put_failure: | 695 | nla_put_failure: |
697 | nlmsg_trim(skb, b); | 696 | nla_nest_cancel(skb, nest); |
698 | return -1; | 697 | return -1; |
699 | } | 698 | } |
700 | 699 | ||
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index 0d9d8911a621..bd49bf547a47 100644 --- a/net/sched/cls_tcindex.c +++ b/net/sched/cls_tcindex.c | |||
@@ -489,11 +489,10 @@ static int tcindex_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
489 | { | 489 | { |
490 | struct tcindex_data *p = rtnl_dereference(tp->root); | 490 | struct tcindex_data *p = rtnl_dereference(tp->root); |
491 | struct tcindex_filter_result *r = (struct tcindex_filter_result *) fh; | 491 | struct tcindex_filter_result *r = (struct tcindex_filter_result *) fh; |
492 | unsigned char *b = skb_tail_pointer(skb); | ||
493 | struct nlattr *nest; | 492 | struct nlattr *nest; |
494 | 493 | ||
495 | pr_debug("tcindex_dump(tp %p,fh 0x%lx,skb %p,t %p),p %p,r %p,b %p\n", | 494 | pr_debug("tcindex_dump(tp %p,fh 0x%lx,skb %p,t %p),p %p,r %p\n", |
496 | tp, fh, skb, t, p, r, b); | 495 | tp, fh, skb, t, p, r); |
497 | pr_debug("p->perfect %p p->h %p\n", p->perfect, p->h); | 496 | pr_debug("p->perfect %p p->h %p\n", p->perfect, p->h); |
498 | 497 | ||
499 | nest = nla_nest_start(skb, TCA_OPTIONS); | 498 | nest = nla_nest_start(skb, TCA_OPTIONS); |
@@ -543,7 +542,7 @@ static int tcindex_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
543 | return skb->len; | 542 | return skb->len; |
544 | 543 | ||
545 | nla_put_failure: | 544 | nla_put_failure: |
546 | nlmsg_trim(skb, b); | 545 | nla_nest_cancel(skb, nest); |
547 | return -1; | 546 | return -1; |
548 | } | 547 | } |
549 | 548 | ||