X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fcore%2Fgen_stats.c;h=bcc25591d8ac554c898bbf0a47573ad6705d5934;hb=5351fb106a84d6ac584c2501e3b335093d38a58c;hp=259473d0559d1ed713887c6a21f90181a1a1c5a5;hpb=f8abea8f8c24ecdad6d6861bffb912f23f2741cd;p=powerpc.git diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c index 259473d055..bcc25591d8 100644 --- a/net/core/gen_stats.c +++ b/net/core/gen_stats.c @@ -61,7 +61,7 @@ gnet_stats_start_copy_compat(struct sk_buff *skb, int type, int tc_stats_type, spin_lock_bh(lock); d->lock = lock; if (type) - d->tail = (struct rtattr *) skb->tail; + d->tail = (struct rtattr *)skb_tail_pointer(skb); d->skb = skb; d->compat_tc_stats = tc_stats_type; d->compat_xstats = xstats_type; @@ -212,7 +212,7 @@ int gnet_stats_finish_copy(struct gnet_dump *d) { if (d->tail) - d->tail->rta_len = d->skb->tail - (u8 *) d->tail; + d->tail->rta_len = skb_tail_pointer(d->skb) - (u8 *)d->tail; if (d->compat_tc_stats) if (gnet_stats_copy(d, d->compat_tc_stats, &d->tc_stats,