diff options
-rw-r--r-- | security/keys/process_keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 1068cb1939b3..be7ecb2018dd 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c | |||
@@ -657,7 +657,8 @@ try_again: | |||
657 | goto error; | 657 | goto error; |
658 | 658 | ||
659 | down_read(&cred->request_key_auth->sem); | 659 | down_read(&cred->request_key_auth->sem); |
660 | if (cred->request_key_auth->flags & KEY_FLAG_REVOKED) { | 660 | if (test_bit(KEY_FLAG_REVOKED, |
661 | &cred->request_key_auth->flags)) { | ||
661 | key_ref = ERR_PTR(-EKEYREVOKED); | 662 | key_ref = ERR_PTR(-EKEYREVOKED); |
662 | key = NULL; | 663 | key = NULL; |
663 | } else { | 664 | } else { |