diff options
Diffstat (limited to 'security/keys/process_keys.c')
-rw-r--r-- | security/keys/process_keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index a3063eb3dc23..3bc6071ad633 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c | |||
@@ -270,7 +270,7 @@ static int install_session_keyring(struct key *keyring) | |||
270 | if (!new) | 270 | if (!new) |
271 | return -ENOMEM; | 271 | return -ENOMEM; |
272 | 272 | ||
273 | ret = install_session_keyring_to_cred(new, NULL); | 273 | ret = install_session_keyring_to_cred(new, keyring); |
274 | if (ret < 0) { | 274 | if (ret < 0) { |
275 | abort_creds(new); | 275 | abort_creds(new); |
276 | return ret; | 276 | return ret; |