KEYS: __key_link() should use the RCU deref wrapper for keyring payloads
authorDavid Howells <dhowells@redhat.com>
Mon, 22 Aug 2011 13:08:51 +0000 (14:08 +0100)
committerJames Morris <jmorris@namei.org>
Mon, 22 Aug 2011 23:57:34 +0000 (09:57 +1000)
commit6d528b082294f0ddabd6368297546a2c0b67d4fe
tree268bf5dbd454c689947c51867bf5b77e21c97eae
parent3ecf1b4f347210e39b156177e5b8a26ff8d00279
KEYS: __key_link() should use the RCU deref wrapper for keyring payloads

__key_link() should use the RCU deref wrapper rcu_dereference_locked_keyring()
for accessing keyring payloads rather than calling rcu_dereference_protected()
directly.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/keyring.c