Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jmorris/security-testing-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
  keys: don't need to use RCU in keyring_read() as semaphore is held
  • Loading branch information
Linus Torvalds committed Apr 27, 2010
2 parents 11e39d9 + b59ec78 commit 1600f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/keys/keyring.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static long keyring_read(const struct key *keyring,
int loop, ret;

ret = 0;
klist = rcu_dereference(keyring->payload.subscriptions);
klist = keyring->payload.subscriptions;

if (klist) {
/* calculate how much data we could return */
Expand Down

0 comments on commit 1600f9d

Please sign in to comment.