ucounts: Move get_ucounts from cred_alloc_blank to key_change_session_keyring
[linux-block.git] / kernel / cred.c
index 16c05dfbec4d8a97992fa284dba26715ce267204..1ae0b4948a5a820d4ea3f758c733418dcb3f286f 100644 (file)
@@ -225,8 +225,6 @@ struct cred *cred_alloc_blank(void)
 #ifdef CONFIG_DEBUG_CREDENTIALS
        new->magic = CRED_MAGIC;
 #endif
-       new->ucounts = get_ucounts(&init_ucounts);
-
        if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0)
                goto error;