KEYS: If install_session_keyring() is given a keyring, it should install it
[linux-3.10.git] / security / keys / process_keys.c
index a3063eb..3bc6071 100644 (file)
@@ -270,7 +270,7 @@ static int install_session_keyring(struct key *keyring)
        if (!new)
                return -ENOMEM;
 
-       ret = install_session_keyring_to_cred(new, NULL);
+       ret = install_session_keyring_to_cred(new, keyring);
        if (ret < 0) {
                abort_creds(new);
                return ret;