diff options
Diffstat (limited to 'net/sched/act_simple.c')
-rw-r--r-- | net/sched/act_simple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index ecbcfa59b76c..36e1edad5990 100644 --- a/net/sched/act_simple.c +++ b/net/sched/act_simple.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/netdevice.h> | 16 | #include <linux/netdevice.h> |
17 | #include <linux/skbuff.h> | 17 | #include <linux/skbuff.h> |
18 | #include <linux/rtnetlink.h> | 18 | #include <linux/rtnetlink.h> |
19 | #include <net/netlink.h> | ||
19 | #include <net/pkt_sched.h> | 20 | #include <net/pkt_sched.h> |
20 | 21 | ||
21 | #define TCA_ACT_SIMP 22 | 22 | #define TCA_ACT_SIMP 22 |
@@ -173,7 +174,7 @@ static inline int tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, | |||
173 | return skb->len; | 174 | return skb->len; |
174 | 175 | ||
175 | rtattr_failure: | 176 | rtattr_failure: |
176 | skb_trim(skb, b - skb->data); | 177 | nlmsg_trim(skb, b); |
177 | return -1; | 178 | return -1; |
178 | } | 179 | } |
179 | 180 | ||