summaryrefslogtreecommitdiff
path: root/security/keys/encrypted-keys/encrypted.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2011-10-24 16:17:42 +0400
committerMimi Zohar <zohar@linux.vnet.ibm.com>2011-11-16 23:23:13 +0400
commitf4a0d5abef14562c37dee5a1d49180f494106230 (patch)
treebe3b35ecaf9a2372fae08ac83d006b21e1c43021 /security/keys/encrypted-keys/encrypted.c
parentff0ff78068dd8a962358dbbdafa9d6f24540d3e5 (diff)
downloadlinux-f4a0d5abef14562c37dee5a1d49180f494106230.tar.xz
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/encrypted.c')
-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 dcc843cb0f80..41144f71d615 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",