diff options
Diffstat (limited to 'security')
| -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 f8e7251ae2c8..504bdd2452bd 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c | |||
| @@ -207,7 +207,7 @@ static int install_process_keyring(void) | |||
| 207 | ret = install_process_keyring_to_cred(new); | 207 | ret = install_process_keyring_to_cred(new); |
| 208 | if (ret < 0) { | 208 | if (ret < 0) { |
| 209 | abort_creds(new); | 209 | abort_creds(new); |
| 210 | return ret != -EEXIST ?: 0; | 210 | return ret != -EEXIST ? ret : 0; |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | return commit_creds(new); | 213 | return commit_creds(new); |
