]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ieee802154/netlink.c
net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new()
[mirror_ubuntu-artful-kernel.git] / net / ieee802154 / netlink.c
index c8097ae2482fc83c71ecf8ecced5e5657406f890..97351e1d07a4398931406e3ef64383903d91f613 100644 (file)
@@ -44,7 +44,7 @@ struct genl_family nl802154_family = {
 struct sk_buff *ieee802154_nl_create(int flags, u8 req)
 {
        void *hdr;
-       struct sk_buff *msg = nlmsg_new(NLMSG_GOODSIZE, GFP_ATOMIC);
+       struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC);
        unsigned long f;
 
        if (!msg)
@@ -80,7 +80,7 @@ struct sk_buff *ieee802154_nl_new_reply(struct genl_info *info,
                int flags, u8 req)
 {
        void *hdr;
-       struct sk_buff *msg = nlmsg_new(NLMSG_GOODSIZE, GFP_ATOMIC);
+       struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC);
 
        if (!msg)
                return NULL;