diff options
-rw-r--r-- | kernel/cred.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cred.c b/kernel/cred.c index ff7bc071991..fc222e4acfb 100644 --- a/kernel/cred.c +++ b/kernel/cred.c | |||
@@ -529,6 +529,7 @@ struct cred *prepare_kernel_cred(struct task_struct *daemon) | |||
529 | 529 | ||
530 | error: | 530 | error: |
531 | put_cred(new); | 531 | put_cred(new); |
532 | put_cred(old); | ||
532 | return NULL; | 533 | return NULL; |
533 | } | 534 | } |
534 | EXPORT_SYMBOL(prepare_kernel_cred); | 535 | EXPORT_SYMBOL(prepare_kernel_cred); |