net-next: replace obsolete NLMSG_* with type safe nlmsg_*
[deliverable/linux.git] / net / ipv4 / udp_diag.c
index 505b30ad9182dc83e42e106b4bbaa507dd84f591..369a781851ad91373da7803112783caf22dbaded 100644 (file)
@@ -64,9 +64,9 @@ static int udp_dump_one(struct udp_table *tbl, struct sk_buff *in_skb,
                goto out;
 
        err = -ENOMEM;
-       rep = alloc_skb(NLMSG_SPACE((sizeof(struct inet_diag_msg) +
-                                    sizeof(struct inet_diag_meminfo) +
-                                    64)), GFP_KERNEL);
+       rep = nlmsg_new(sizeof(struct inet_diag_msg) +
+                       sizeof(struct inet_diag_meminfo) + 64,
+                       GFP_KERNEL);
        if (!rep)
                goto out;
 
This page took 0.02353 seconds and 5 git commands to generate.