diff options
Diffstat (limited to 'kernel/cred.c')
-rw-r--r-- | kernel/cred.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cred.c b/kernel/cred.c index f1e22556bc49..d84fc910e2f3 100644 --- a/kernel/cred.c +++ b/kernel/cred.c | |||
@@ -656,11 +656,13 @@ struct cred *prepare_kernel_cred(struct task_struct *daemon) | |||
656 | if (!new) | 656 | if (!new) |
657 | return NULL; | 657 | return NULL; |
658 | 658 | ||
659 | #ifdef CONFIG_KEYS | ||
659 | tgcred = kmalloc(sizeof(*tgcred), GFP_KERNEL); | 660 | tgcred = kmalloc(sizeof(*tgcred), GFP_KERNEL); |
660 | if (!tgcred) { | 661 | if (!tgcred) { |
661 | kmem_cache_free(cred_jar, new); | 662 | kmem_cache_free(cred_jar, new); |
662 | return NULL; | 663 | return NULL; |
663 | } | 664 | } |
665 | #endif | ||
664 | 666 | ||
665 | kdebug("prepare_kernel_cred() alloc %p", new); | 667 | kdebug("prepare_kernel_cred() alloc %p", new); |
666 | 668 | ||