CRED: Delete alloc_creds() as it's not used
PATCH 1/1 CRED: Delete alloc_creds() as it's not used
Delete alloc_creds() as it's not used.
Signed-off-by David Howells <[email protected]>
---
kernel/cred-internals.h | 5 ----- kernel/cred.c | 15 --------------- 2 files changed, 0 insertions(+), 20 deletions(-)
kernel/cred-internals.h +0 -5
@@ -10,11 +10,6 @@*/ /* -* cred.c -*/ -extern struct cred *alloc_creds (const struct cred *,gfp_t ); - -/* * user.c */ static inline void sched_switch_user (struct task_struct *p)
kernel/cred.c +0 -15
@@ -112,21 +112,6 @@ void __put_cred(struct cred *cred) }EXPORT_SYMBOL (__put_cred); -/* -* Allocate new credentials -*/ -struct cred *alloc_creds (const struct cred *old,gfp_t gfp) -{ -struct cred *new; - - new =kmem_cache_alloc (cred_jar,GFP_KERNEL ); -if (!new) -return NULL ; -if (old) -memcpy (new, old,sizeof (struct cred )); -return new; -} -/** * prepare_creds - Prepare a new set of credentials for modification *
Quoted 3 lines · David Howells
Delete
alloc_creds()as it's not used.Signed-off-by David Howells <[email protected]>
Applied togit://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next-creds-subsys
(and not #next-creds, which is supposed to be dead).
- James
Signature · 2 lines
James Morris <[email protected]>