diff options
Diffstat (limited to 'kernel/user.c')
| -rw-r--r-- | kernel/user.c | 11 | 
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/user.c b/kernel/user.c index 766467b3bcb7..7e72614b736d 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -16,7 +16,6 @@  #include <linux/interrupt.h>  #include <linux/module.h>  #include <linux/user_namespace.h> -#include "cred-internals.h"  struct user_namespace init_user_ns = {  	.kref = { @@ -137,9 +136,6 @@ struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid)  	struct hlist_head *hashent = uidhashentry(ns, uid);  	struct user_struct *up, *new; -	/* Make uid_hash_find() + uids_user_create() + uid_hash_insert() -	 * atomic. -	 */  	spin_lock_irq(&uidhash_lock);  	up = uid_hash_find(uid, hashent);  	spin_unlock_irq(&uidhash_lock); @@ -161,11 +157,6 @@ struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid)  		spin_lock_irq(&uidhash_lock);  		up = uid_hash_find(uid, hashent);  		if (up) { -			/* This case is not possible when CONFIG_USER_SCHED -			 * is defined, since we serialize alloc_uid() using -			 * uids_mutex. Hence no need to call -			 * sched_destroy_user() or remove_user_sysfs_dir(). -			 */  			key_put(new->uid_keyring);  			key_put(new->session_keyring);  			kmem_cache_free(uid_cachep, new); @@ -178,8 +169,6 @@ struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid)  	return up; -	put_user_ns(new->user_ns); -	kmem_cache_free(uid_cachep, new);  out_unlock:  	return NULL;  }  |