]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/sched/cls_basic.c
[NETLINK]: Use nlmsg_trim() where appropriate
[mirror_ubuntu-artful-kernel.git] / net / sched / cls_basic.c
index 800ec2ac326b5ae91be25d5ee051b391ec63c9a2..c885412d79d5d7613145015e26d05fdd4df55e94 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/errno.h>
 #include <linux/rtnetlink.h>
 #include <linux/skbuff.h>
+#include <net/netlink.h>
 #include <net/act_api.h>
 #include <net/pkt_cls.h>
 
@@ -267,7 +268,7 @@ static int basic_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;
 }