]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/infiniband/core/iwpm_util.c
Merge tag 'usercopy-v4.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[karo-tx-linux.git] / drivers / infiniband / core / iwpm_util.c
index b65e06c560d7ddafa8c53292a5f6e36c917a9244..ade71e7f01313b7634a074885a3900dea087425b 100644 (file)
@@ -37,6 +37,7 @@
 #define IWPM_MAPINFO_HASH_MASK (IWPM_MAPINFO_HASH_SIZE - 1)
 #define IWPM_REMINFO_HASH_SIZE 64
 #define IWPM_REMINFO_HASH_MASK (IWPM_REMINFO_HASH_SIZE - 1)
+#define IWPM_MSG_SIZE          512
 
 static LIST_HEAD(iwpm_nlmsg_req_list);
 static DEFINE_SPINLOCK(iwpm_nlmsg_req_lock);
@@ -452,7 +453,7 @@ struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,
 {
        struct sk_buff *skb = NULL;
 
-       skb = dev_alloc_skb(NLMSG_GOODSIZE);
+       skb = dev_alloc_skb(IWPM_MSG_SIZE);
        if (!skb) {
                pr_err("%s Unable to allocate skb\n", __func__);
                goto create_nlmsg_exit;