diff options
| author | David Howells <dhowells@redhat.com> | 2009-01-09 11:13:41 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-09 14:53:53 -0500 |
| commit | 0de336814107358bc8c4173bf9ce2d42445173fe (patch) | |
| tree | df2b34b171e1310e16b136b151551150c4060be7 /kernel | |
| parent | 29a41e9e029d21c306e3ad6e723700348b04706a (diff) | |
CRED: Missing put_cred() in prepare_kernel_cred()
Missing put_cred() in the error handling path of prepare_kernel_cred().
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
| -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 ff7bc071991c..fc222e4acfb0 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); |
