Skip to content

Commit

Permalink
encrypted-keys: fix error return code
Browse files Browse the repository at this point in the history
Fix request_master_key() error return code.

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
  • Loading branch information
Mimi Zohar committed Nov 16, 2011
1 parent ff0ff78 commit f4a0d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/keys/encrypted-keys/encrypted.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f4a0d5a

Please sign in to comment.