X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fsched%2Fact_simple.c;h=fb84ef33d14f75d82281ab21b932ebea416e1e6f;hb=a441d7b6bf3386c5b384685151a1cea921658819;hp=c7971182af0752d67b267a22e607f58dc0dd1613;hpb=a727fea99bf4b2addcd64c596735148117a7b37f;p=linux-2.6-omap-h63xx.git diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index c7971182af0..fb84ef33d14 100644 --- a/net/sched/act_simple.c +++ b/net/sched/act_simple.c @@ -13,9 +13,9 @@ #include #include #include -#include #include #include +#include #include #define TCA_ACT_SIMP 22 @@ -155,7 +155,7 @@ static inline int tcf_simp_cleanup(struct tc_action *a, int bind) static inline int tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) { - unsigned char *b = skb->tail; + unsigned char *b = skb_tail_pointer(skb); struct tcf_defact *d = a->priv; struct tc_defact opt; struct tcf_t t; @@ -173,7 +173,7 @@ static inline int tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, return skb->len; rtattr_failure: - skb_trim(skb, b - skb->data); + nlmsg_trim(skb, b); return -1; }