diff options
Diffstat (limited to 'net/sched/act_gact.c')
-rw-r--r-- | net/sched/act_gact.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/act_gact.c b/net/sched/act_gact.c index 87d0faf32867..7517f3791541 100644 --- a/net/sched/act_gact.c +++ b/net/sched/act_gact.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <linux/proc_fs.h> | 30 | #include <linux/proc_fs.h> |
31 | #include <net/netlink.h> | ||
31 | #include <net/sock.h> | 32 | #include <net/sock.h> |
32 | #include <net/pkt_sched.h> | 33 | #include <net/pkt_sched.h> |
33 | #include <linux/tc_act/tc_gact.h> | 34 | #include <linux/tc_act/tc_gact.h> |
@@ -155,7 +156,7 @@ static int tcf_gact(struct sk_buff *skb, struct tc_action *a, struct tcf_result | |||
155 | 156 | ||
156 | static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) | 157 | static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) |
157 | { | 158 | { |
158 | unsigned char *b = skb->tail; | 159 | unsigned char *b = skb_tail_pointer(skb); |
159 | struct tc_gact opt; | 160 | struct tc_gact opt; |
160 | struct tcf_gact *gact = a->priv; | 161 | struct tcf_gact *gact = a->priv; |
161 | struct tcf_t t; | 162 | struct tcf_t t; |
@@ -181,7 +182,7 @@ static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int | |||
181 | return skb->len; | 182 | return skb->len; |
182 | 183 | ||
183 | rtattr_failure: | 184 | rtattr_failure: |
184 | skb_trim(skb, b - skb->data); | 185 | nlmsg_trim(skb, b); |
185 | return -1; | 186 | return -1; |
186 | } | 187 | } |
187 | 188 | ||