X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fcore%2Fsysctl_net_core.c;h=cf9cd13509a7d531f9e4a455d2909f5dfb731923;hb=5b59d467ad9ff9c014b99f4cfc2ea627b0806d07;hp=cca444190907c9da8ea1ac86f998d76c0574ace9;hpb=c5036813559ed45b517f28be876b29ccead689c5;p=~andy%2Flinux diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index cca44419090..cf9cd13509a 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c @@ -122,7 +122,8 @@ static int flow_limit_cpu_sysctl(struct ctl_table *table, int write, synchronize_rcu(); kfree(cur); } else if (!cur && cpumask_test_cpu(i, mask)) { - cur = kzalloc(len, GFP_KERNEL); + cur = kzalloc_node(len, GFP_KERNEL, + cpu_to_node(i)); if (!cur) { /* not unwinding previous changes */ ret = -ENOMEM;