|
@@ -158,6 +158,7 @@ struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid)
|
|
spin_lock_irq(&uidhash_lock);
|
|
spin_lock_irq(&uidhash_lock);
|
|
up = uid_hash_find(uid, hashent);
|
|
up = uid_hash_find(uid, hashent);
|
|
if (up) {
|
|
if (up) {
|
|
|
|
+ put_user_ns(ns);
|
|
key_put(new->uid_keyring);
|
|
key_put(new->uid_keyring);
|
|
key_put(new->session_keyring);
|
|
key_put(new->session_keyring);
|
|
kmem_cache_free(uid_cachep, new);
|
|
kmem_cache_free(uid_cachep, new);
|