]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netlabel/netlabel_unlabeled.c
[NETLINK]: Do precise netlink message allocations where possible
[net-next-2.6.git] / net / netlabel / netlabel_unlabeled.c
index 1833ad233b39f33a7a0d062d24901cade27f8400..219dccade4e18899a8000c607892cdeba14872cd 100644 (file)
@@ -138,7 +138,7 @@ static int netlbl_unlabel_list(struct sk_buff *skb, struct genl_info *info)
        struct sk_buff *ans_skb;
        void *data;
 
-       ans_skb = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL);
+       ans_skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
        if (ans_skb == NULL)
                goto list_failure;
        data = netlbl_netlink_hdr_put(ans_skb,