Skip to content
Snippets Groups Projects
Commit 0de33681 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

CRED: Missing put_cred() in prepare_kernel_cred()


Missing put_cred() in the error handling path of prepare_kernel_cred().

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Acked-by: default avatarSteve Dickson <steved@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 29a41e9e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment