]> git.baikalelectronics.ru Git - kernel.git/commit
keys: fix trusted/encrypted keys sparse rcu_assign_pointer messages
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 17 Jan 2012 20:39:51 +0000 (20:39 +0000)
committerJames Morris <jmorris@namei.org>
Tue, 17 Jan 2012 23:41:29 +0000 (10:41 +1100)
commit011d5988bd5126f492fe8aaca2c7244a426e16e3
treed7670d202d0f4888b5213ed73d88c9a80bd05b74
parent3d8e707645e8501be2f586afeaf1d0f527c27905
keys: fix trusted/encrypted keys sparse rcu_assign_pointer messages

Define rcu_assign_keypointer(), which uses the key payload.rcudata instead
of payload.data, to resolve the CONFIG_SPARSE_RCU_POINTER message:
"incompatible types in comparison expression (different address spaces)"

Replace the rcu_assign_pointer() calls in encrypted/trusted keys with
rcu_assign_keypointer().

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/key.h
security/keys/encrypted-keys/encrypted.c
security/keys/encrypted-keys/masterkey_trusted.c
security/keys/trusted.c