Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Minor overlapping changes, nothing serious. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -63,8 +63,9 @@ static int udp_dump_one(struct udp_table *tbl,
|
||||
goto out;
|
||||
|
||||
err = -ENOMEM;
|
||||
rep = nlmsg_new(sizeof(struct inet_diag_msg) +
|
||||
sizeof(struct inet_diag_meminfo) + 64,
|
||||
rep = nlmsg_new(nla_total_size(sizeof(struct inet_diag_msg)) +
|
||||
inet_diag_msg_attrs_size() +
|
||||
nla_total_size(sizeof(struct inet_diag_meminfo)) + 64,
|
||||
GFP_KERNEL);
|
||||
if (!rep)
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user