]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/psample/psample.c
Merge tag 'ioremap-5.5' of git://git.infradead.org/users/hch/ioremap
[linux.git] / net / psample / psample.c
index a6ceb0533b5bbb6c03c467f411361dad343e1257..6f2fbc6b9eb2ece91fd21ff0b7157e136cad9ac8 100644 (file)
@@ -229,7 +229,7 @@ void psample_sample_packet(struct psample_group *group, struct sk_buff *skb,
                data_len = PSAMPLE_MAX_PACKET_SIZE - meta_len - NLA_HDRLEN
                            - NLA_ALIGNTO;
 
-       nl_skb = genlmsg_new(meta_len + data_len, GFP_ATOMIC);
+       nl_skb = genlmsg_new(meta_len + nla_total_size(data_len), GFP_ATOMIC);
        if (unlikely(!nl_skb))
                return;