diff --git a/kernel/user.c b/kernel/user.c index 766467b3bcb7f1e42da792bece602ec8404135a2..ec3b2229893b1f1258d95b572893cf2b988ead8f 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -178,8 +178,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; }