aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/mm/init_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c
index 10471f9bb63f..d747dd7bc90b 100644
--- a/arch/powerpc/mm/init_64.c
+++ b/arch/powerpc/mm/init_64.c
@@ -132,6 +132,7 @@ void pgtable_cache_add(unsigned shift, void (*ctor)(void *))
132 align = max_t(unsigned long, align, minalign); 132 align = max_t(unsigned long, align, minalign);
133 name = kasprintf(GFP_KERNEL, "pgtable-2^%d", shift); 133 name = kasprintf(GFP_KERNEL, "pgtable-2^%d", shift);
134 new = kmem_cache_create(name, table_size, align, 0, ctor); 134 new = kmem_cache_create(name, table_size, align, 0, ctor);
135 kfree(name);
135 pgtable_cache[shift - 1] = new; 136 pgtable_cache[shift - 1] = new;
136 pr_debug("Allocated pgtable cache for order %d\n", shift); 137 pr_debug("Allocated pgtable cache for order %d\n", shift);
137} 138}