Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190678
b: refs/heads/master
c: e35ec2d
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Paul E. McKenney committed May 4, 2010
1 parent 830f614 commit 599f7d2
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: bfeb0360de7713de8240cafd7ecf6058b6dbea0b
refs/heads/master: e35ec2d2c1fc45dd3e46dde74bb0c4c4366125bf
3 changes: 2 additions & 1 deletion trunk/security/keys/user_defined.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ long user_read(const struct key *key, char __user *buffer, size_t buflen)
struct user_key_payload *upayload;
long ret;

upayload = rcu_dereference(key->payload.data);
upayload = rcu_dereference_protected(
key->payload.data, rwsem_is_locked(&((struct key *)key)->sem));
ret = upayload->datalen;

/* we can return the data as is */
Expand Down

0 comments on commit 599f7d2

Please sign in to comment.