Browse Source

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>
Mimi Zohar 11 years ago
parent
commit
b64cc5fb85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      security/keys/encrypted-keys/encrypted.c

+ 1 - 1
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;