posix-clock: Fix return code on the poll method's error path
[pandora-kernel.git] / kernel / cred.c
index 5791612..48c6fd3 100644 (file)
@@ -385,6 +385,8 @@ int copy_creds(struct task_struct *p, unsigned long clone_flags)
        struct cred *new;
        int ret;
 
+       p->replacement_session_keyring = NULL;
+
        if (
 #ifdef CONFIG_KEYS
                !p->cred->thread_keyring &&