aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/user_namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/user_namespace.c')
-rw-r--r--kernel/user_namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index 532858fa5b88..f82730adea00 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -38,7 +38,7 @@ static struct user_namespace *clone_user_ns(struct user_namespace *old_ns)
38 } 38 }
39 39
40 /* Reset current->user with a new one */ 40 /* Reset current->user with a new one */
41 new_user = alloc_uid(ns, current->uid); 41 new_user = alloc_uid(ns, current_uid());
42 if (!new_user) { 42 if (!new_user) {
43 free_uid(ns->root_user); 43 free_uid(ns->root_user);
44 kfree(ns); 44 kfree(ns);