]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sched/cls_tcindex.c
[NETLINK]: Use nlmsg_trim() where appropriate
[net-next-2.6.git] / net / sched / cls_tcindex.c
index 0537d6066b43c5c5c51c8537410b5b7c716e1594..47ac0c556429d6b41d4a1443a2316ade53229e0f 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/netdevice.h>
 #include <net/ip.h>
 #include <net/act_api.h>
+#include <net/netlink.h>
 #include <net/pkt_cls.h>
 #include <net/route.h>
 
@@ -495,7 +496,7 @@ static int tcindex_dump(struct tcf_proto *tp, unsigned long fh,
        return skb->len;
 
 rtattr_failure:
-       skb_trim(skb, b - skb->data);
+       nlmsg_trim(skb, b);
        return -1;
 }