diff options
Diffstat (limited to 'kernel/user.c')
-rw-r--r-- | kernel/user.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/user.c b/kernel/user.c index 33acb5e53a5f..e81978e8c03b 100644 --- a/kernel/user.c +++ b/kernel/user.c | |||
@@ -47,9 +47,7 @@ struct user_namespace init_user_ns = { | |||
47 | .count = 4294967295U, | 47 | .count = 4294967295U, |
48 | }, | 48 | }, |
49 | }, | 49 | }, |
50 | .kref = { | 50 | .count = ATOMIC_INIT(3), |
51 | .refcount = ATOMIC_INIT(3), | ||
52 | }, | ||
53 | .owner = GLOBAL_ROOT_UID, | 51 | .owner = GLOBAL_ROOT_UID, |
54 | .group = GLOBAL_ROOT_GID, | 52 | .group = GLOBAL_ROOT_GID, |
55 | .proc_inum = PROC_USER_INIT_INO, | 53 | .proc_inum = PROC_USER_INIT_INO, |
@@ -107,9 +105,8 @@ static void uid_hash_remove(struct user_struct *up) | |||
107 | static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent) | 105 | static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent) |
108 | { | 106 | { |
109 | struct user_struct *user; | 107 | struct user_struct *user; |
110 | struct hlist_node *h; | ||
111 | 108 | ||
112 | hlist_for_each_entry(user, h, hashent, uidhash_node) { | 109 | hlist_for_each_entry(user, hashent, uidhash_node) { |
113 | if (uid_eq(user->uid, uid)) { | 110 | if (uid_eq(user->uid, uid)) { |
114 | atomic_inc(&user->__count); | 111 | atomic_inc(&user->__count); |
115 | return user; | 112 | return user; |