summaryrefslogtreecommitdiffstats
path: root/security/keys/encrypted-keys
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2011-10-24 08:17:42 -0400
committerMimi Zohar <zohar@linux.vnet.ibm.com>2011-11-16 14:23:13 -0500
commitf4a0d5abef14562c37dee5a1d49180f494106230 (patch)
treebe3b35ecaf9a2372fae08ac83d006b21e1c43021 /security/keys/encrypted-keys
parentff0ff78068dd8a962358dbbdafa9d6f24540d3e5 (diff)
downloadop-kernel-dev-f4a0d5abef14562c37dee5a1d49180f494106230.zip
op-kernel-dev-f4a0d5abef14562c37dee5a1d49180f494106230.tar.gz
encrypted-keys: fix error return code
Fix request_master_key() error return code. Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Diffstat (limited to 'security/keys/encrypted-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 dcc843c..41144f7 100644
--- a/security/keys/encrypted-keys/encrypted.c
+++ b/security/keys/encrypted-keys/encrypted.c
@@ -444,7 +444,7 @@ static struct key *request_master_key(struct encrypted_key_payload *epayload,
goto out;
if (IS_ERR(mkey)) {
- int ret = PTR_ERR(epayload);
+ int ret = PTR_ERR(mkey);
if (ret == -ENOTSUPP)
pr_info("encrypted_key: key %s not supported",
OpenPOWER on IntegriCloud