Fix install_process_keyring error handling
Subsystems (2)
David Howells
maintainerPATCH 1/1 Fix install_process_keyring error handling
From: Andi Kleen <[email protected]>
Fix incorrect error check that returns 1 for error instead of the expected error code.
Signed-off-by Andi Kleen <[email protected]>
Signed-off-by David Howells <[email protected]>
---
security/keys/process_keys.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
security/keys/process_keys.c +1 -1
@@ -207,7 +207,7 @@ static int install_process_keyring(void) ret =install_process_keyring_to_cred (new);if (ret <0 ) {abort_creds (new); -return ret != -EEXIST ?:0 ; +return ret != -EEXIST ? ret :0 ; }return commit_creds (new);