]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: arp_tables: use vmalloc_node()
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 05:55:59 +0000 (21:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:45 +0000 (14:58 -0800)
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>
net/ipv4/netfilter/arp_tables.c

index 8b1842babafa596f4b712f395c8c0f7473d6bf2d..fb4d77978ec3afd29bf8698fe9204691674261d8 100644 (file)
@@ -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;
@@ -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;