diff options
Diffstat (limited to 'net/sched/sch_netem.c')
-rw-r--r-- | net/sched/sch_netem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 915f82a2cc3d..2a9b1e429ff8 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c | |||
@@ -583,7 +583,7 @@ static void netem_destroy(struct Qdisc *sch) | |||
583 | static int netem_dump(struct Qdisc *sch, struct sk_buff *skb) | 583 | static int netem_dump(struct Qdisc *sch, struct sk_buff *skb) |
584 | { | 584 | { |
585 | const struct netem_sched_data *q = qdisc_priv(sch); | 585 | const struct netem_sched_data *q = qdisc_priv(sch); |
586 | unsigned char *b = skb->tail; | 586 | unsigned char *b = skb_tail_pointer(skb); |
587 | struct rtattr *rta = (struct rtattr *) b; | 587 | struct rtattr *rta = (struct rtattr *) b; |
588 | struct tc_netem_qopt qopt; | 588 | struct tc_netem_qopt qopt; |
589 | struct tc_netem_corr cor; | 589 | struct tc_netem_corr cor; |
@@ -611,7 +611,7 @@ static int netem_dump(struct Qdisc *sch, struct sk_buff *skb) | |||
611 | corrupt.correlation = q->corrupt_cor.rho; | 611 | corrupt.correlation = q->corrupt_cor.rho; |
612 | RTA_PUT(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt); | 612 | RTA_PUT(skb, TCA_NETEM_CORRUPT, sizeof(corrupt), &corrupt); |
613 | 613 | ||
614 | rta->rta_len = skb->tail - b; | 614 | rta->rta_len = skb_tail_pointer(skb) - b; |
615 | 615 | ||
616 | return skb->len; | 616 | return skb->len; |
617 | 617 | ||