diff --git a/[refs] b/[refs] index cc9bdae3170f..b7e5c7f5d4f6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d46a3d0d07ba539aea5b0e1ad30e568f0cb03576 +refs/heads/master: 3d8334def5cf831d2ed438aae021696a2faa4ddd diff --git a/trunk/kernel/taskstats.c b/trunk/kernel/taskstats.c index f3c3e9d43d2c..2039585ec5e1 100644 --- a/trunk/kernel/taskstats.c +++ b/trunk/kernel/taskstats.c @@ -77,7 +77,8 @@ static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, /* * If new attributes are added, please revisit this allocation */ - skb = nlmsg_new(genlmsg_total_size(size), GFP_KERNEL); + size = nlmsg_total_size(genlmsg_total_size(size)); + skb = nlmsg_new(size, GFP_KERNEL); if (!skb) return -ENOMEM;