diff options
Diffstat (limited to 'net/ipv6/seg6_hmac.c')
-rw-r--r-- | net/ipv6/seg6_hmac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/seg6_hmac.c b/net/ipv6/seg6_hmac.c index 5215e1eba010..b274f1d95e03 100644 --- a/net/ipv6/seg6_hmac.c +++ b/net/ipv6/seg6_hmac.c | |||
@@ -389,7 +389,8 @@ static int seg6_hmac_init_algo(void) | |||
389 | return -ENOMEM; | 389 | return -ENOMEM; |
390 | 390 | ||
391 | for_each_possible_cpu(cpu) { | 391 | for_each_possible_cpu(cpu) { |
392 | shash = kzalloc(shsize, GFP_KERNEL); | 392 | shash = kzalloc_node(shsize, GFP_KERNEL, |
393 | cpu_to_node(cpu)); | ||
393 | if (!shash) | 394 | if (!shash) |
394 | return -ENOMEM; | 395 | return -ENOMEM; |
395 | *per_cpu_ptr(algo->shashs, cpu) = shash; | 396 | *per_cpu_ptr(algo->shashs, cpu) = shash; |