Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78520
b: refs/heads/master
c: 1976312
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 02a74ab commit 198a6d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0495cf957bfacbca123cb4c4e1c4cf0e265f522e
refs/heads/master: 197631201ec2833f50ac50e6aa7c8ee151e66dda
5 changes: 3 additions & 2 deletions trunk/net/ipv4/netfilter/arp_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ static int do_replace(void __user *user, unsigned int len)
goto free_newinfo;
}

counters = vmalloc(tmp.num_counters * sizeof(struct xt_counters));
counters = vmalloc_node(tmp.num_counters * sizeof(struct xt_counters),
numa_node_id());
if (!counters) {
ret = -ENOMEM;
goto free_newinfo;
Expand Down Expand Up @@ -902,7 +903,7 @@ static int do_add_counters(void __user *user, unsigned int len)
if (len != sizeof(tmp) + tmp.num_counters*sizeof(struct xt_counters))
return -EINVAL;

paddc = vmalloc(len);
paddc = vmalloc_node(len, numa_node_id());
if (!paddc)
return -ENOMEM;

Expand Down

0 comments on commit 198a6d4

Please sign in to comment.