mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
29a41e9e02
commit
0de3368141
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue