Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292296
b: refs/heads/master
c: f67dabb
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and James Morris committed Mar 7, 2012
1 parent 09d444f commit 15cdb62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df91e49477a9be15921cb2854e1d12a3bdb5e425
refs/heads/master: f67dabbdde1fe112dfff05d02890f1e0d54117a8
3 changes: 2 additions & 1 deletion trunk/security/keys/process_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,8 @@ key_ref_t lookup_user_key(key_serial_t id, unsigned long lflags,
goto error;

down_read(&cred->request_key_auth->sem);
if (cred->request_key_auth->flags & KEY_FLAG_REVOKED) {
if (test_bit(KEY_FLAG_REVOKED,
&cred->request_key_auth->flags)) {
key_ref = ERR_PTR(-EKEYREVOKED);
key = NULL;
} else {
Expand Down

0 comments on commit 15cdb62

Please sign in to comment.