diff options
Diffstat (limited to 'net/sched/cls_route.c')
-rw-r--r-- | net/sched/cls_route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c index abc47cc48ad0..1f94df36239d 100644 --- a/net/sched/cls_route.c +++ b/net/sched/cls_route.c | |||
@@ -562,7 +562,7 @@ static int route4_dump(struct tcf_proto *tp, unsigned long fh, | |||
562 | struct sk_buff *skb, struct tcmsg *t) | 562 | struct sk_buff *skb, struct tcmsg *t) |
563 | { | 563 | { |
564 | struct route4_filter *f = (struct route4_filter*)fh; | 564 | struct route4_filter *f = (struct route4_filter*)fh; |
565 | unsigned char *b = skb->tail; | 565 | unsigned char *b = skb_tail_pointer(skb); |
566 | struct rtattr *rta; | 566 | struct rtattr *rta; |
567 | u32 id; | 567 | u32 id; |
568 | 568 | ||
@@ -591,7 +591,7 @@ static int route4_dump(struct tcf_proto *tp, unsigned long fh, | |||
591 | if (tcf_exts_dump(skb, &f->exts, &route_ext_map) < 0) | 591 | if (tcf_exts_dump(skb, &f->exts, &route_ext_map) < 0) |
592 | goto rtattr_failure; | 592 | goto rtattr_failure; |
593 | 593 | ||
594 | rta->rta_len = skb->tail - b; | 594 | rta->rta_len = skb_tail_pointer(skb) - b; |
595 | 595 | ||
596 | if (tcf_exts_dump_stats(skb, &f->exts, &route_ext_map) < 0) | 596 | if (tcf_exts_dump_stats(skb, &f->exts, &route_ext_map) < 0) |
597 | goto rtattr_failure; | 597 | goto rtattr_failure; |