diff options
-rw-r--r-- | mm/zswap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zswap.c b/mm/zswap.c index aeaef0fb5624..008388fe7b0f 100644 --- a/mm/zswap.c +++ b/mm/zswap.c | |||
@@ -347,7 +347,7 @@ static int __zswap_cpu_notifier(unsigned long action, unsigned long cpu) | |||
347 | return NOTIFY_BAD; | 347 | return NOTIFY_BAD; |
348 | } | 348 | } |
349 | *per_cpu_ptr(zswap_comp_pcpu_tfms, cpu) = tfm; | 349 | *per_cpu_ptr(zswap_comp_pcpu_tfms, cpu) = tfm; |
350 | dst = kmalloc(PAGE_SIZE * 2, GFP_KERNEL); | 350 | dst = kmalloc_node(PAGE_SIZE * 2, GFP_KERNEL, cpu_to_node(cpu)); |
351 | if (!dst) { | 351 | if (!dst) { |
352 | pr_err("can't allocate compressor buffer\n"); | 352 | pr_err("can't allocate compressor buffer\n"); |
353 | crypto_free_comp(tfm); | 353 | crypto_free_comp(tfm); |