Skip to content

Commit b64cc5f

Browse files
Mimi Zohardhowells
authored andcommitted
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>
1 parent f6fd5c8 commit b64cc5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/keys/encrypted-keys/encrypted.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ static int encrypted_instantiate(struct key *key,
811811
goto out;
812812
}
813813

814-
prep->payload[0] = epayload;
814+
rcu_assign_keypointer(key, epayload);
815815
out:
816816
kfree(datablob);
817817
return ret;

0 commit comments

Comments
 (0)