mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Fix install_process_keyring error handling
Fix an 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]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
765aaafe38
commit
27d6379894
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue