projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29a41e9
)
CRED: Missing put_cred() in prepare_kernel_cred()
author
David Howells
<dhowells@redhat.com>
Fri, 9 Jan 2009 16:13:41 +0000
(16:13 +0000)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 9 Jan 2009 19:53:53 +0000
(11:53 -0800)
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>
kernel/cred.c
patch
|
blob
|
history
diff --git
a/kernel/cred.c
b/kernel/cred.c
index
ff7bc07
..
fc222e4
100644
(file)
--- a/
kernel/cred.c
+++ b/
kernel/cred.c
@@
-529,6
+529,7
@@
struct cred *prepare_kernel_cred(struct task_struct *daemon)
error:
put_cred(new);
+ put_cred(old);
return NULL;
}
EXPORT_SYMBOL(prepare_kernel_cred);