summaryrefslogtreecommitdiffstats
path: root/security/keys
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2014-07-26 23:21:02 -0400
committerDavid Howells <dhowells@redhat.com>2014-07-28 12:36:17 +0100
commitb64cc5fb85f38ae7ca3c67a8fea9ad8c0d068bfa (patch)
tree2c7497d1e2a17af44b59fb82b840f1c3471a5a4f /security/keys
parentf6fd5c84b9eb93ee6fbf028da87a32aeeecc5ee4 (diff)
downloadlinux-b64cc5fb85f38ae7ca3c67a8fea9ad8c0d068bfa.tar.bz2
KEYS: revert encrypted key change
Commit fc7c70e "KEYS: struct key_preparsed_payload should have two payload pointers" erroneously modified encrypted-keys. This patch reverts the change to that file. Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'security/keys')
-rw-r--r--security/keys/encrypted-keys/encrypted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/encrypted-keys/encrypted.c b/security/keys/encrypted-keys/encrypted.c
index d252c5704f8a..5fe443d120af 100644
--- a/security/keys/encrypted-keys/encrypted.c
+++ b/security/keys/encrypted-keys/encrypted.c
@@ -811,7 +811,7 @@ static int encrypted_instantiate(struct key *key,
goto out;
}
- prep->payload[0] = epayload;
+ rcu_assign_keypointer(key, epayload);
out:
kfree(datablob);
return ret;