diff options
Diffstat (limited to 'net/sched/sch_ingress.c')
-rw-r--r-- | net/sched/sch_ingress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c index cfe070ee6ee3..d19f4070c237 100644 --- a/net/sched/sch_ingress.c +++ b/net/sched/sch_ingress.c | |||
@@ -362,12 +362,12 @@ static void ingress_destroy(struct Qdisc *sch) | |||
362 | 362 | ||
363 | static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb) | 363 | static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb) |
364 | { | 364 | { |
365 | unsigned char *b = skb->tail; | 365 | unsigned char *b = skb_tail_pointer(skb); |
366 | struct rtattr *rta; | 366 | struct rtattr *rta; |
367 | 367 | ||
368 | rta = (struct rtattr *) b; | 368 | rta = (struct rtattr *) b; |
369 | RTA_PUT(skb, TCA_OPTIONS, 0, NULL); | 369 | RTA_PUT(skb, TCA_OPTIONS, 0, NULL); |
370 | rta->rta_len = skb->tail - b; | 370 | rta->rta_len = skb_tail_pointer(skb) - b; |
371 | return skb->len; | 371 | return skb->len; |
372 | 372 | ||
373 | rtattr_failure: | 373 | rtattr_failure: |