diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-18 00:55:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:58:45 -0500 |
commit | 197631201ec2833f50ac50e6aa7c8ee151e66dda (patch) | |
tree | edd027479aa0c952cb7ea49993bb39bf1182c9b2 | |
parent | 0495cf957bfacbca123cb4c4e1c4cf0e265f522e (diff) |
[NETFILTER]: arp_tables: use vmalloc_node()
Use vmalloc_node() as in ip_tables.c.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/netfilter/arp_tables.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c index 8b1842babafa..fb4d77978ec3 100644 --- a/net/ipv4/netfilter/arp_tables.c +++ b/net/ipv4/netfilter/arp_tables.c | |||
@@ -804,7 +804,8 @@ static int do_replace(void __user *user, unsigned int len) | |||
804 | goto free_newinfo; | 804 | goto free_newinfo; |
805 | } | 805 | } |
806 | 806 | ||
807 | counters = vmalloc(tmp.num_counters * sizeof(struct xt_counters)); | 807 | counters = vmalloc_node(tmp.num_counters * sizeof(struct xt_counters), |
808 | numa_node_id()); | ||
808 | if (!counters) { | 809 | if (!counters) { |
809 | ret = -ENOMEM; | 810 | ret = -ENOMEM; |
810 | goto free_newinfo; | 811 | goto free_newinfo; |
@@ -902,7 +903,7 @@ static int do_add_counters(void __user *user, unsigned int len) | |||
902 | if (len != sizeof(tmp) + tmp.num_counters*sizeof(struct xt_counters)) | 903 | if (len != sizeof(tmp) + tmp.num_counters*sizeof(struct xt_counters)) |
903 | return -EINVAL; | 904 | return -EINVAL; |
904 | 905 | ||
905 | paddc = vmalloc(len); | 906 | paddc = vmalloc_node(len, numa_node_id()); |
906 | if (!paddc) | 907 | if (!paddc) |
907 | return -ENOMEM; | 908 | return -ENOMEM; |
908 | 909 | ||