Message ID | 1425015034-26419-1-git-send-email-yanjiang.jin@windriver.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e77553cb21adabb7680930e7b20c578cec7ae5a8 |
Delegated to: | Michael Ellerman |
Headers | show |
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index a90b9c4..fe0631f 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c @@ -129,6 +129,7 @@ void pgtable_cache_add(unsigned shift, void (*ctor)(void *)) align = max_t(unsigned long, align, minalign); name = kasprintf(GFP_KERNEL, "pgtable-2^%d", shift); new = kmem_cache_create(name, table_size, align, 0, ctor); + kfree(name); pgtable_cache[shift - 1] = new; pr_debug("Allocated pgtable cache for order %d\n", shift); }